Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis issue

Hi,

I have this expression below which is giving a wrong result (No filters selected).

expression.PNG

snap1.PNG

For funnelstamp2 =PQ Close and doc_signed dates selected in that range the value should be 0 for Eloview since there is no record where subscription is <7.

The expression is not taking the filters into consideration. Clicking on the filters makes the value 0.

snap.PNG

What is wrong with the expression? Also, the strange thing is that it works when i am giving the subscription >7.

1 Solution

Accepted Solutions
sunny_talwar

I meant leave the first expression as it is and add this one. So, in short add these two expressions

1) Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription)

2) If(Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) < 7, (quote_quantity*0.005))

My guess is that Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) = 0 which is less than 7. If that is the case, may be your try like this



Sum(Aggr(

If(Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) < 7

and

Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) > 0

, (quote_quantity*0.005)), [Quote number], [Elo Project ID], elo_owner Team))

View solution in original post

12 Replies
girirajsinh
Creator III
Creator III

Hi

First, what result it shows when you give Subscription > 7 ?

You mentioned that there should be 0 for Subscription < 7. For that you may remove the 'if' condition and place "subscription={"<7"}" in the set analysis

MK_QSL
MVP
MVP

Please provide sample data or sample application to test !

vinieme12
Champion III
Champion III

Replace ########## with the date format for doc_signed and quote_create_date respectively.


doc_signed={">=$(=Date#('10/01/2016','##########'))<$(=Date#('09/30/2017','##########'))"}

and

quote_create_date ={">=$(=Date#('07/02/2016','##########'))<$(=Date#('09/30/2017','##########'))"}

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

I think the best way to resolve this would be to create your aggr table as a straight table.

Dimensions

[Quote number],

[Elo Project ID],

elo_owner

Team

Expression

Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription)

Now check if you see any values less than 7 or not? and then you can continue your troubleshoot from here to see if this expression needs to be changed or if you need to fix your aggr() dimensions.

Like Manish mentioned, it might be easier to help with a sample available to us.

Best,

Sunny

Anonymous
Not applicable
Author

Result from the straight table.

SNAP3.PNG

sunny_talwar

What do you see with this expression now? in the same straight table:

If(Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) < 7, (quote_quantity*0.005))

Anonymous
Not applicable
Author

Here is the result.

sunny_talwar

I meant leave the first expression as it is and add this one. So, in short add these two expressions

1) Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription)

2) If(Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) < 7, (quote_quantity*0.005))

My guess is that Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) = 0 which is less than 7. If that is the case, may be your try like this



Sum(Aggr(

If(Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) < 7

and

Sum({<Doc_Signed = {'>=10/01/2016<09/30/2017'}, [Quote create date] = {'>=07/02/2016<09/30/2017'}, FunnelStamp2 = {'PQ Close'}>} subscription) > 0

, (quote_quantity*0.005)), [Quote number], [Elo Project ID], elo_owner Team))

Anonymous
Not applicable
Author

Yay! That was the issue. Thank you!