cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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:

 Date Customer Sales Difference 1/1/2022 A 1000 100 1/1/2022 B 800 -100 1/1/2022 C (to compare with) 900 0 2/1/2022 A 1300 200 2/1/2022 B 1100 0 2/1/2022 C (to compare with) 1100 0

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.

Any help is much appreciated!

Ivan

1 ACCEPTED SOLUTION
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!

2 REPLIES 2
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!

Helper V

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors