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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
LamSar
Helper III
Helper III

Divide function with incorrect result

Good afternoon,

 

I have a problem with a formula to calculate a percentage. 

 

See picture below:

calculation wrong.jfif

The red bar shows 11,56%.

The pct column in the tooltip is not 11% in total. 

 

This is the measure I used: 

pct reden te kort =
VAR totManco = CALCULATE(sum(Leverorder[aantal manco]), Manco[Reden van tekort (groep)] = "Overige")
RETURN
DIVIDE([Aantal manco], totManco,0)
 
What am I doing wrong?
 
Thank you.
5 REPLIES 5
LamSar
Helper III
Helper III

Aantal manco = SUM(Manco[Totaal Manco])
Pragati11
Super User
Super User

Hi @LamSar ,

 

How is the other measure calculated: [Aantal manco] ?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

HI @LamSar ,

 

Is your custom tooltip using a different percentage calculation? I see in the screenshot, that it uses pct for showing percentages.

My understanding is your column chart is using pct reden te kort. So it is different to the tooltip.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

No, the column chart also uses the measure [aantal manco]. But per category. 
And for the tooltip, I need the percentage per subcategory in the category.

Aantal manco = SUM(Manco[Totaal Manco])

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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