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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mehlenbae2
Helper II
Helper II

Issue with current measures. I need to measure progress.

I put together two visuals that measures a project that my team has been working on. However, AP has reached 100% of their target which is deploying 950 systems. I would like for my chart to display AP reached 100% of their target. Previously, AP's target was not met so my "Pending" and "Completed" measures worked just fine, now that the target is met my AP visuals look weird. 

 

The targets for each region is as follows:

AP = 950

NA = 1250

UK = 250

 

I used two different measures to craft my bar charts- Refresh Completed and Refresh Pending.

Refresh Completed = SUM('Refresh'[Count])
Refresh Pending = SELECTEDVALUE('Refresh'[Target]) - 'Refresh'[Refresh Completed]
 
mehlenbae2_0-1671718299239.png
mehlenbae2_1-1671718318243.png

 

I had a response to my issue that said to use a measure like: Sumx(Summarize('Refresh', 'Refresh' [region] ,"_trg", Max('Refresh'[Target]),"_cnt",SUM('Refresh'[Count])) , [_trg] -[_cnt])

 

However, I got the following results:

mehlenbae2_2-1671718402431.png

It still doesn't work. Please help!

1 ACCEPTED SOLUTION
TomasAndersson
Solution Sage
Solution Sage

Hi!
At least a part of the issue seems to be that the number of refreshed can exceed the target. You can remove "Pending" when target is met by adding an IF() clause

Pending = 
IF('Refresh'[Refresh Completed] >= SELECTEDVALUE('Refresh'[Target]), //If reached target
    0,    //Nothing is pending
    SELECTEDVALUE('Refresh'[Target]) - 'Refresh'[Refresh Completed]  //Else calculate pending
)

Depending on if you want to restrict Completed to not being higher than target, you could do something similar for that measure

Hope this helps!

View solution in original post

3 REPLIES 3
TomasAndersson
Solution Sage
Solution Sage

Hi!
At least a part of the issue seems to be that the number of refreshed can exceed the target. You can remove "Pending" when target is met by adding an IF() clause

Pending = 
IF('Refresh'[Refresh Completed] >= SELECTEDVALUE('Refresh'[Target]), //If reached target
    0,    //Nothing is pending
    SELECTEDVALUE('Refresh'[Target]) - 'Refresh'[Refresh Completed]  //Else calculate pending
)

Depending on if you want to restrict Completed to not being higher than target, you could do something similar for that measure

Hope this helps!

I have a follow up question- so it works almost perfectly, the only thing that I would like to modify is that in my bottom left visual, I'd like it to display the deployment targets for each region (AP's deployment target is 950) but because AP surpassed the target it now shows the total deployments and not the target. Is there a way to modify this? Everything else works perfectly, though!

 

mehlenbae2_0-1672668328777.png

 

Wahoo! Thank you very much, Thomas. This worked perfectly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors