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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Transforming Cumulative data files

Hello guys, 

I need help in transforming the data based on the example I attached. I am receiving monthly data, but these data contain cumulative values for the period (no data column per month). As you see in the attached picture I have two files one is the January - August file and the second one is the January - September file. So if I need to calculate the values of any KPIs for the company "z" I need to use the correct file (the latest data - Jan-Sept) and subtract the values from the same company from the previous file (Jan - August) and to assign that value as a September data (9/2023) in the new column to have a correct data type (who will be in relationship with my Calendar dimension table). So, for Octobar data, I will receive the Octobar file (from January to October) and the same process of subtracting the value of the previous file in this case Jan - Sept file. Do you know how I can transform that in Power Query or using some DAX measure?

DataSoruce.JPG

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

There has to be a Date column in each table.  Creae that and share data in a format that can be pasted in an MS Excel file.


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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

This is just an example of how my data are structured. I do not have permission to change anything on the source but I can make changes in the PBI Query Editor. I already created a date table but still, these are cumulative values. I created some DAX measures but still, this is not the solution I expected 

 

A date column will have to somehow be created for the subtraction to happen.  Share data (with actual column headers) in a format that can be pasted in an MS Excel file.


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

Hi,

There has to be a Date column in each table.  Creae that and share data in a format that can be pasted in an MS Excel file.


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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.