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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
rollo
Frequent Visitor

Multiple tier rollup

In the example below, I have created a calculated column "Profit Per Unit" using the following expression:

 

Profit Per Unit = Divide('Titan_DMS qryNVunitsandGP'[Profit],('Titan_DMS qryNVunitsandGP'[Units]),0)

 

and this works perfectly at the table view level.

 

Division Franchise    Model                 Units           Profit   Profit Per Unit

A          Landrover     Range Rover        10             30000      3000

A          Jaguar           F - Type                 6             24000      4000 

B          Landrover     Discovery             12             30000      2500

B          Nissan          Pulsar                     6             24000      4000 

C          Nissan          Pulsar                     8             12000      1500

 

My problem arises when I try and create a line chart report and want to slice with filters for:

 

Division

Franchise

Model

 

and the result I am getting for these summaries is not correct.

It would appear that it is adding all the Per Unit figures together instead of having weighted averages.

I have only been using Power BI for a few days so please bear with me.

 

Hope you can help

 

Rollo

        

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@rollo,

 

You need to add a measure instead.

http://community.powerbi.com/t5/Desktop/Combined-graph-doesnt-calculated-graph-line/m-p/359331#M1620...

Community Support Team _ Sam Zha
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
v-chuncz-msft
Community Support
Community Support

@rollo,

 

You need to add a measure instead.

http://community.powerbi.com/t5/Desktop/Combined-graph-doesnt-calculated-graph-line/m-p/359331#M1620...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi v-chunz

 

This does not work for graphs.

It works fine in the table format but when you used the new measure "Profit per unit", it adds up all the individual Profit Per Unit calculations and displays the aggregate total on the line chart which is completely wrong.

 

rollo
Frequent Visitor

Thanks v-chunz

 

This now works perfectly.

I hadn't appreciated the difference between adding a measure and adding a column.

 

 

Cheers

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors