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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Eric667
Regular Visitor

DAX - Running total until Yesterday using Time Intelligence

Hi there!

 

I have been trying to calculate a Running Total until yesterday using the following formula:

 

Total Until Yesterday = CALCULATE(sum('Table'[Table]), DATESBETWEEN(Datetable[Date], "1-jan-2015", today()-1 ))

 

This works out fine, it gives back the total number until yesterday. My problem now is: once I try to stretch it over time (adding "date" as the axis), it spreads the Total number unti yesterday over the entire time span of the date table, attributing the same value to each day (which is the total of yesterday). 

 

What I want to achieve is getting back the accurate value of sign ups every day since the counting started. Can anybody help with that?

 

Cheers!

 

snip_20160324120744.png

4 REPLIES 4
Anonymous
Not applicable

Hi @Eric667,

 

   can you provide me an example dataset? Because I tried with a dummy dataset and I obtained a correct chart with the ability to drill down the date hierarchy.

 

#I'M Not An Expert#

 

 

Hi @Anonymous, thanks for trying! I will see if i can draw a sample with the same characteristics. May I ask if you used the formula I wrote here?

Anonymous
Not applicable

Yes, I've used your formula.

kcantor
Community Champion
Community Champion

Bump.

I do not have the answer but would like to see what input everyone else offers as this is a great question.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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