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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure does not calculate % correctly when slicer is used

Hey All

 

Would appreciate help with this one.

 

I have a table with Vendor Ledger data that is a combination of a couple of business units.

 

I use the following measure to calculate the RoSIEInv% and it works fine for the overall calculation, but when I use the slicer, the % calculated is not correct. (See attachment)

 

RoSIE Inv% = FORMAT([RoSIE Inv]/[Total Invoices], "#,##0 %")

 

DeonDP_0-1610932893001.png

 

DeonDP_1-1610932998289.png

 

The weird thing is that I am using the same formula in the same table for the EDI Inv% calculation, and it works just fine when I use the slicer to see the data for a specific unit.

 
 
 

 

 
 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for your reply Amitchandak

 

I got to the bottom of the issue.

 

The formula you proposed: RoSIE Inv% = FORMAT(divide([RoSIE Proc],[Total Invoices]), "#,##0 %") , works great but it was actually me that made an error with my measure.
 

My formula was using an incorrect measure [RoSIE Inv] that was not linked to the slicer table to calculate the % instead of another measure named [RoSIE Proc] that is part of the table linked to the slicer (I hope I said that correctly :-))

 

I would love to accept your comments as a solution, but it was really me who attempted to apply an incorrect measure.  Thank you though for showing me an alternative measure to the one that I applied to my model.

 

Cheers

 

DeonDP

 

 

 
 

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I am accepting your reply as solution. Good that you are able to find the issue. Kudos to you.

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
amitchandak
Super User
Super User

@Anonymous , Can you share the formula of [Total Invoices]  and [RoSIE Inv] .

Also try with divide

RoSIE Inv% = FORMAT(divide([RoSIE Inv],[Total Invoices]), "#,##0 %")

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

Thanks for your reply Amitchandak

 

I got to the bottom of the issue.

 

The formula you proposed: RoSIE Inv% = FORMAT(divide([RoSIE Proc],[Total Invoices]), "#,##0 %") , works great but it was actually me that made an error with my measure.
 

My formula was using an incorrect measure [RoSIE Inv] that was not linked to the slicer table to calculate the % instead of another measure named [RoSIE Proc] that is part of the table linked to the slicer (I hope I said that correctly :-))

 

I would love to accept your comments as a solution, but it was really me who attempted to apply an incorrect measure.  Thank you though for showing me an alternative measure to the one that I applied to my model.

 

Cheers

 

DeonDP

 

 

 
 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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