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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DeonDP
Helper II
Helper II

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

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

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

amitchandak
Super User
Super User

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

Also try with divide

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

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.