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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
HenryJS
Post Prodigy
Post Prodigy

Add Cumulative

Hi all,

 

How can I add a column that states IF 'custom' is in the future then add a 15 cumulative total for each row?

 

30 May 2021      15

06 June 2021      30

 

etc

 

 

Capture.PNG

3 REPLIES 3
Fowmy
Super User
Super User

@HenryJS 

You can add the following DAX calculated column:

Cumm = 
IF( 
    Table[Custom] > TODAY() , 
    RANKX( FILTER(Table,Table[Custom] > TODAY() ) , Table[Custom], , ASC) * 15
)

Fowmy_0-1621427811177.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@HenryJS , not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Try a new column  like

 

sumx(filter(Table, [custom] <=earlier([custom])),[QTY])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak I want to add a new DAX column that states if Week Ending is in the future then add a cumulative 15 for each week

 

so if week ending is in future each week ending adds 15 cumulatively, 15, 30, 45, 60 etc for each week in future

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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