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

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

Reply
IvanS
Helper V
Helper V

Difference of daily change of running total compared to one customer

Hi all, 

 

I am trying to create the table based on comparison of running total vs. one customer - example below:

DateCustomerSalesDifference
1/1/2022A1000100
1/1/2022B800-100
1/1/2022C (to compare with)9000
2/1/2022A1300200
2/1/2022B11000
2/1/2022C (to compare with)11000

 

I would need to visualise this in graph like below (where green color represents the customer C against which the difference is being calculated). I did not find any visual in PBI store that could provide such insight so therefore I am looking for DAX calculation.

 

IvanS_0-1643573408162.png

 

Any help is much appreciated!

Ivan

 

1 ACCEPTED SOLUTION
ToddChitt
Super User
Super User

You would need to split the talble into two: Customers that will be compared against Customer C, and, obvously, Customer C. Join them back together on Date ONLY. Note that you may need to do all this in Power Query. Your larger table will now have, on each row, the value of the Customer in question, and the value for Customer C.

 

Plotting should be fairly easy after that.


Hope that helps.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
ToddChitt
Super User
Super User

You would need to split the talble into two: Customers that will be compared against Customer C, and, obvously, Customer C. Join them back together on Date ONLY. Note that you may need to do all this in Power Query. Your larger table will now have, on each row, the value of the Customer in question, and the value for Customer C.

 

Plotting should be fairly easy after that.


Hope that helps.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Thank you so much! Very nice workaround instead of DAX formula. 🙂

Helpful resources

Announcements
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