Forum Discussion
MilanRao06
9 years agoAdvocate I
Using Slicer values in a calculated column
Hi All, I am building a dashboard for the quarterly customer satisfaction feedback scores. In my data model, i have the columns Quarter, Customer Name and the feedback details. My usecase to...
- 9 years ago
Hi MilanRao06,
The value of a calculated table or calculate column is computed during data refresh, it does not depend on user interaction in the report. So it is not possible to create a dynamic calculate table or calculate column depend on user selections.
In this scenario, you may need to create a measure similar like below, and show the Contact IDs with the created measure in a Table or Matrix on the report.
IsCommonQuarter = IF ( ISFILTERED ( Response[Quarter] ) && HASONEVALUE ( Response[Quarter] ), IF ( LASTNONBLANK ( Response[Quarter], 0 ) = [CommonQuarter], 1, 0 ) )Note: You may also need to use a separate table column of "Quarter" as the Slicer instead of Response[Quarter] column in the same table.
Regards
richbenmintz
9 years agoResident Rockstar
have a look at the following post from the sqlbi
http://www.daxpatterns.com/new-and-returning-customers/.
you can use this pattern to create a measure that does what you want