Forum Discussion
954571
2 years agoFrequent Visitor
True False Statement Help
Hi there, I am trying to find out if it is possible to create a measure /column / slicer/filter where it would essentially give me either one value or all values in Column X as a TRUE/FALSE functi...
- Anonymous2 years ago
Hi,
Thanks for the solution PwerQueryKees and Greg_Deckler offered, and i want to offer some more information for user to refer to.
hello 954571 , you can refer to the following solution.
Sample data is the same as you provided, you can create a slicer table first.
Then create a measure
MEASURE = IF ( ISFILTERED ( Slicer[Selection] ) && SELECTEDVALUE ( Slicer[Selection] ) = "Yes", CALCULATE ( SUM ( 'Table'[Number Amount] ), 'Table'[Column X] = "A" ), CALCULATE ( SUM ( 'Table'[Number Amount] ) ) )Then put them to the visual.
Ouptut
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PwerQueryKees
2 years agoSuper User
You posting this in the power query forum. I don't think power query would be the best for your problem, but correct me if I am wrong and I will be glad to help.
954571
2 years agoFrequent Visitor
Okay thank you , I was unsure. I have editted question. Hopefully it is more clear now what I am trying to achieve.