Forum Discussion
Display multiple values with selectedvalue
- 3 years ago
Hey sagarsahoo_123 ,
you have to incorporate the DAX function ISFILTERED in your DAX statement: ISFILTERED – DAX Guide
Then your measure will look like this:Measure = IF( ISFILTERED( 'DimStore'[StoreName] ) , SELECTEDVALUE( 'DimStore'[StoreName] , "Multiple Selection" ) , "All" )The result - the bottom right card visual is the important one:
The top right card only contains a simple measure for illustrative purposes.
Hopefully, this provides an idea of how to tackle your challenge.
Regards,
Tom
Hey sagarsahoo_123 ,
you have to incorporate the DAX function ISFILTERED in your DAX statement: ISFILTERED – DAX Guide
Then your measure will look like this:
Measure =
IF( ISFILTERED( 'DimStore'[StoreName] )
, SELECTEDVALUE( 'DimStore'[StoreName] , "Multiple Selection" )
, "All"
)
The result - the bottom right card visual is the important one:
The top right card only contains a simple measure for illustrative purposes.
Hopefully, this provides an idea of how to tackle your challenge.
Regards,
Tom
- sagarsahoo_1233 years agoHelper IV
Hi TomMartens ,
Thanks a lot for your quick support. It realy helped to resolve the issue.
Regards,
Sagar
- Nieczytelny2 years agoNew Member
Hi All,
Let me refresh the topic. Just no to create new one.
I've got similar situation...
Formula counts Open Cases at each day in the past.
WIP =CALCULATE (COUNT ( 'vwSupplier_Feedback'[_Identifier] ),FILTER(ALL ( 'vwSupplier_Feedback' ),[_PPG_Location] = SELECTEDVALUE('vwSupplier_Feedback'[_PPG_Location])&& [_Issued_Date]<= SELECTEDVALUE ( 'Calendar'[Date] )&& or( [_Resolved] >= SELECTEDVALUE ( 'Calendar'[Date].[Date] ) , [_Resolved] = BLANK() )))I have got a slicer so I can select a "_PPG_Location" to see Open Cases for the selected Location. The graph works perfectly with single location. But if I wanted to select multiple Locations, it is not working anymore.I think I understand why, but have no idea how to allow mulptiple selections.
I'll appreciate any help.
M