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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Julianaz
Helper II
Helper II

sum up from the beginning of the date table to date

I am referencing this article to calculate the beginning to date summaring but get 0.

 

I don't think it's correct to use the argument all() to represent the year-end which is a constant value.

 

Do you have other solutions to get the beginning to date sumup?

 

https://exceltown.com/en/tutorials/power-bi/powerbi-com-and-power-bi-desktop/dax-query-language-for-...

 

 

Julianaz_1-1694099799684.png

 

 

7 REPLIES 7
v-stephen-msft
Community Support
Community Support

Hi @Julianaz ,

 

Based on your describing, I think you want to return a cumulative value, right?

You can try creating the following measure.

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])))

vstephenmsft_0-1694499248052.png

 

Best Regards,

Stephen Tao

 

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

Why we need use Filter(ALLSELECTED()... ?
Thanks @v-stephen-msft 

I mean if we put the date as a slicer and select different date(s) the result will be different.

chonchar
Helper V
Helper V

Hi, 

 

YTD Total =
SUM(YTD
)
 
Try this. 

Actually it's not working YTD already restricted everything in one fiscal year and you can't calculate the cumulative data for all any longer.
Sorry about that.

wow I guess that's very smart 🙂 I will try to see if it works~~~~~

I'd have to play with it get it right. I definitely have to work through it lol

 

Sorry about that. Good luck!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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