Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with multiple conditional expression based on user selection

I have the field "month", which has values 1-12. I have another field, "num_mondays", which looks at each month and has the proper number of Mondays (4 or 5).

I have simple expressions in a pivot chart where I need to divide them by the number of Mondays, depending on the month selection.

For example, one expression I have is called Uploads YTD, and it's simply: sum({$<CALENDAR_YEAR_A = {2017}>} ActualHits)

I don't know how to divide that by num_mondays, based on user selection of month in listbox.

3 Replies
Anonymous
Not applicable
Author

why not sum({$<CALENDAR_YEAR_A = {2017}>} ActualHits) /num_mondays if you are using month as dimension??

Not applicable
Author

I'm not using month as a dimension, I'm using state as a dimension

Anonymous
Not applicable
Author

Can you please share a sample if sum({$<CALENDAR_YEAR_A = {2017}>} ActualHits) /num_mondays is not working??