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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Dimani
Helper II
Helper II

Monthly cumulative values for pivoted data?

Hi

 

A colleague is working on some monthly numbers, for different categories, and she wants to calculate and graph the running sum by  month too.

 

Her data are already pivoted in Excel, and she added new columns in Excel to calculate the running sum.  She can do that in Power BI too.

 

Is there any benefit to do it in Excel vs Power BI?

 

In terms of graphing, I have not found a way to do that other than unpivot the running sum in the Query Editor first, but is there a way to plot the pivoted running sum by months?

 

Also, in terms of calculating the running sum, I saw some examples that other users use the unpivoted data and a measure to calculate the running sum.  Is that a better approach than using the pivot monthly data to calculate the running sum?

 

Thank you.

2 ACCEPTED SOLUTIONS
CheenuSing
Community Champion
Community Champion

Hi @Dimani ,,

 

The approach 

"

Also, in terms of calculating the running sum, I saw some examples that other users use the unpivoted data and a measure to calculate the running sum.  Is that a better approach than using the pivot monthly data to calculate the running sum?"

 

is the best.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

View solution in original post

v-zhengdxu-msft
Community Support
Community Support

Hi @Dimani 

 

Just as CheenuSing said that you don't need to pivot the data in power bi.

Different with Excel, Power bi's calculations are primarily column-based, which results in less flexibility than Excel in some ways. Excel allows for quick adjustments and manual interventions if needed, but it might require more manual effort to create complex visualizations. And Power BI offers advanced visualization options and interactive dashboards, making it easier to explore and present data.

 

In Power BI, you can plot the pivoted running sum by months without unpivoting the data. A measure can easily solve the problem without taking up additional system storage space.

 

And if you want to get a pivot table, maybe you can try the matrix visual:

vzhengdxumsft_0-1737618205427.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-zhengdxu-msft
Community Support
Community Support

Hi @Dimani 

 

Just as CheenuSing said that you don't need to pivot the data in power bi.

Different with Excel, Power bi's calculations are primarily column-based, which results in less flexibility than Excel in some ways. Excel allows for quick adjustments and manual interventions if needed, but it might require more manual effort to create complex visualizations. And Power BI offers advanced visualization options and interactive dashboards, making it easier to explore and present data.

 

In Power BI, you can plot the pivoted running sum by months without unpivoting the data. A measure can easily solve the problem without taking up additional system storage space.

 

And if you want to get a pivot table, maybe you can try the matrix visual:

vzhengdxumsft_0-1737618205427.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for your information, Zhengdong.

CheenuSing
Community Champion
Community Champion

Hi @Dimani ,,

 

The approach 

"

Also, in terms of calculating the running sum, I saw some examples that other users use the unpivoted data and a measure to calculate the running sum.  Is that a better approach than using the pivot monthly data to calculate the running sum?"

 

is the best.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Thanks for your information, CheenuSing.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors