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
kuona
New Member

Margin calculation

 

Hello BI-experts,

 

I have the following Row-data, with the calculated column "Margin%":

image.png
so far, so good.

 

BUT, when I display my data in a Tableview, I get following result:image.png

The value 65.5 is the average of 80 and 51

 

Is there any way to obtain the the right Margin (71.93%) for the product 1006547 on the table view?

 

Thanks for any help.

Best,

Kuona

 

1 ACCEPTED SOLUTION
JoHo_BI
Responsive Resident
Responsive Resident

Hi Kuona,

 

Change your margin calculated column to a measure and use the following formula:

 

Margin = SUM(Table[Benefit]) /  SUM(Table[Turnover])

 

This will work it out to 56.01 / 77.87, giving you the desired 71.93% result.

 

HTH!

View solution in original post

2 REPLIES 2
JoHo_BI
Responsive Resident
Responsive Resident

Hi Kuona,

 

Change your margin calculated column to a measure and use the following formula:

 

Margin = SUM(Table[Benefit]) /  SUM(Table[Turnover])

 

This will work it out to 56.01 / 77.87, giving you the desired 71.93% result.

 

HTH!

Hi JoHo,

 

MANY THANKS for the solution, worked like a charm.

 

Cheers,

Kuona

 

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.