Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i have table with Date dimension and measures. Here i want to compare dimension date with canonical date in measures and get value for only that date.
Dimension:
campaign_start_date
Measure:
count({$<CanonicalDate = {'=campaign_start_date'},DataType = {'opens'}>}distinct invitation_id)
Here i want count of invitation where campaign start date equals canonical date
Please let me know if i you need more info.
Please help me on this
try
count(distinct {$<CanonicalDate = p(campaign_start_date),DataType = {'opens'}>} invitation_id)
i am getting wrong counts. Can i know use of P() here. Because i want to just compare date with dimension date and get opens count for that date.
Refer P() & E() and where do you use them?
Also if possible share sample app
You cannot use a set expression for row by row calculations. The set expression is executed once before the chart is built not on a row by row basis. You options are to use a replace the set with a Sum(If()) expression, or to add a derived flag fields in the load script and use the flag field in a set expression.
got it, thanks!