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
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
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.