Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Detaching Individual Selections

I am creating a text box within a dashboard with a count function within.

I require this function to be based on all of the current selections apart from the date fields.

In other words I want to detach it from all calendar based selections, but remain attached to all others.

4 Replies
oknotsen
Master III
Master III

Lets assume your count function currently is "count(OrderID)" and you want to exclude the fields Year and Quarter from having effect on this expression. If so, this is how the expression would look like:

= count({$ < Year=, Quarter= > } OrderID)

The extra curly brackets that you see and everything in between is something called "Set Analysis". You can manipulate the data set used for your expression with using that. Search for Set Analysis for a lot more information.

May you live in interesting times!
sunny_talwar

Another option could be this:

=Sum({<$(='[' & Concat({<$Table = {'MasterCalendar'}>}$Field, '],[') & ']')>}Sales)

NOTE: The above will show syntax error in expression editor, but will work as expected

Capture.PNG

oknotsen
Master III
Master III

Thanks for that trick, sunindia‌. I sure am going to make some customers happy with that.

May you live in interesting times!
Anonymous
Not applicable
Author

Thank you. This was the simplest solution.

I am a newcomer, but am aware of set analysis.