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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Aggart9
Regular Visitor

How to measure value difference with in the same colume based on another column

Capture12.pngHi

 

I want to subrtact the values of these two freight vendors. So I want value difference for

2019-07 ~151-87=64, 

2019-08 ~ 141-88= 53

 

 

 

But Cost per Tonne is a measure based on the formula (Total cost/ total tonnes) on below table

Please advise how to do value difference.

 

Price Date                 Last name                Total Tonnes Total Cost
6/08/2019                    X1                               28.344  3819.32
6/08/2019                    X1                             28.808  3829.28
25/08/2019                 X2                             39.429  3801.17
25/08/2019                 X2                           39.673  3801.17
23/08/2019                X2                           39.696  3801.17
11/08/2019                X2                        38.565              3801.17
9/08/2019                   X2                  38.733               3801.17
8/08/2019                 X2                    37.922                   3801.17
2/08/2019                 X2                 39.2                      3801.17
2/08/2019                    X2           39.603           3801.17
4/08/2019                  X2           39.549                3801.17
18/08/2019                X2           38.755                3801.17

 

 
 

 

 
 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

The next time please share your data in a format that can be pasted in MS Excel.  You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

The next time please share your data in a format that can be pasted in MS Excel.  You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you, It is working!

I tried to post the data from Excel, but I was not not able to, not sure it was only me or there is other way to copy/paste data from Excel.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-diye-msft
Community Support
Community Support

Hi @Aggart9 

 

You might consider creating pbix file that will contain some sample data, upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors