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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
themistoklis
Community Champion
Community Champion

Cumulative Values using Power Query and having a Date Restriction

I have the following table and i would like to caclulate running totals using Power Query.

IDValueDateMax Date
A31221/01/201831/10/2018
A31310/02/201831/10/2018
A31615/03/201831/10/2018
A32110/01/201831/12/2018
A32914/02/201831/12/2018
A32626/03/201831/12/2018

 

I want the running total to run up to the Date specfified by the Max Date field.

The output table based on the above data will look like this. I know how to do this on DAX but I want this the same output using Power Query:

 

MonthIDCumulative Values
Jan-18A312
Feb-18A315
Mar-18A3111
Apr-18A3111
May-18A3111
Jun-18A3111
Jul-18A3111
Aug-18A3111
Sep-18A3111
Oct-18A3111
Nov-18A310
Dec-18A310
Jan-18A321
Feb-18A3210
Mar-18A3216
Apr-18A3216
May-18A3216
Jun-18A3216
Jul-18A3216
Aug-18A3216
Sep-18A3216
Oct-18A3216
Nov-18A3216
Dec-18A3216
1 REPLY 1
Aron_Moore
Solution Specialist
Solution Specialist

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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