Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure for KPI

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,

Capture.PNG
A help is needed ,Do i need to create a measure or column?

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous ,

Not sure, to you need Avg Target Try

averagex(allselected(Table),Sum(Table[Target]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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 )

 1.PNG

 

You could reference the blog of similar topic.

Slicer with AND condition in Power BI 

 

Please download my sample to learn more details.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@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.

Anonymous
Not applicable

I am sorry it's SBU not SU

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.