Forum Discussion
True False Statement Help
- 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.
954571 Sounds like a Complex Selector but hard to know without more information, sample data, etc. The Complex Selector - Microsoft Fabric Community
Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
- 9545712 years agoFrequent Visitor
Thank you for the response, I have editted the question, hopefully it is more clear what I am trying to achieve.
- Anonymous2 years agoNot applicable
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.
- 9545712 years agoFrequent Visitor
Thank you this helped get what was needed.