Forum Discussion
akkitek
Helper III
5 years agoCreating a measure which returns the sum only when a specific value is selected in the slicer
Hey Everyone,
Hope you're well. I am trying to create a measure which returns the sum of "count" only when I select a specifc value in the slicer.
For example:
I am trying to create a measure which will return the sum of "count" column only when Apple is selected. If any other value is selected it should return 0. Any help is appreciated.
Thanks!
akkitek Measure = IF(SELECTEDVALUE('Slicer'[Fruits])="Apple",SUM('Table'[Count]),0)
2 Replies
- Greg_Deckler
Community Champion
akkitek Measure = IF(SELECTEDVALUE('Slicer'[Fruits])="Apple",SUM('Table'[Count]),0)
- akkitek
Helper III
Thanks! This worked perfectly!