cancel
Showing results 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

Helper III

## Divide function with incorrect result

Good afternoon,

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

See picture below:

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
Helper III
Aantal manco = SUM(Manco[Totaal Manco])
Super User

Hi @LamSar ,

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

Thanks,

Pragati

Best Regards,

Pragati Jain

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

Proud to be a Super User!!

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

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

Proud to be a Super User!!

Helper III

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.

Helper III
Aantal manco = SUM(Manco[Totaal Manco])

Announcements

#### 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 Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors