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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nmyre
Helper III
Helper III

Percent of column a from column b, decimal is correct but percentage is wrong???

I am very lost. Problem is:

Measure A is the percentage of Column B from Column A. In the visual, the decimal is right, but when adjusted in the visual drop down, show value as, "percent of grand total", the percentage is wrong.

 

Syntax:

% = DIVIDE([column B], [column A])

 

Simplified example:

.78 = DIVIDE([78], [100])

Meaure is 0.78 with no calculation, but when tried show as percentage it shows as 109.42%

 

The other information in the visual has the location, budget (column A), planned spend, total spent (column B), and Measure A.

Additionally, column A and B are already SUM messures of the data. So long hand I guess it would be:

% = SUM('table'[Original column B])/SUM('table'[Original column A])

 

Not sure of the syntax on that, but I hope you get the picture.

 

Send Help,

Thanks

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @nmyre ,

 

I create a simple example to explain.

 

measure%.PNG

When [Measure] shows value as percent of grand total, the "total" value is "0.59", not 0.42 + 0.56 + 0.78 = 1.76. So, when [Measure] = 0.78, [%GT Measure] = 0.78 / 0.59 = 132.95%.

 

If you want [Measure] shows as percentage, for example, 0.78 -> 78%, try this:

per.jpg

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @nmyre ,

 

I create a simple example to explain.

 

measure%.PNG

When [Measure] shows value as percent of grand total, the "total" value is "0.59", not 0.42 + 0.56 + 0.78 = 1.76. So, when [Measure] = 0.78, [%GT Measure] = 0.78 / 0.59 = 132.95%.

 

If you want [Measure] shows as percentage, for example, 0.78 -> 78%, try this:

per.jpg

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Oh my gosh. This is it. Talk about over complicating a simple solution. Thank you!

Hi @nmyre ,

 

can you share some screenshot?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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