Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a requirement where i need to show the value of Target when all SU is selected and then filter the target value by SU.
that is for january if all SU is selected then the target should be 94.40% and when AAO is selected it should show 94.30 and so on.
Please find the attached table,
A help is needed ,Do i need to create a measure or column?
Hello Amit i created another post and explained it briefly with some more screenshot.
https://community.powerbi.com/t5/Desktop/KPI-calculated-measure/m-p/1060508#M495480
Hi @Anonymous ,
Maybe you could try like this:
Measure =
VAR SBU =
ALLSELECTED ( 'Table 2'[SBU] )
VAR CountSelectedValue =
COUNTROWS ( SBU )
VAR Target =
CALCULATE ( SUM ( 'Table'[Target] ), FILTER ( 'Table', 'Table'[SBU] IN SBU ) )
VAR Default =
CALCULATE ( SUM ( 'Table'[Target] ), 'Table'[SBU] = BLANK () )
RETURN
IF ( CountSelectedValue = 12, Default, Target )
You could reference the blog of similar topic.
Slicer with AND condition in Power BI
Please download my sample to learn more details.
@Anonymous not sure what you mean when all SU selected then filter the target by SU, can you elaborate?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |