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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
test_123_e213
Frequent Visitor

Identical Dates with YTD running totals

 

 

image.png

I want to compute a ytd that can be seen with the total increasing after each date where a new DLY occurs. 

 

Any direction or advice would be greatly appreciated since the YTD function cannot be run with identical dates. ! I've tried many things so far with creating a new date table but it is causing me issues, maybe on how I connected the two queries.

 

I suppose the end result would look something like this. Anything I would be able to select a date and see the YTD.

 

image.png

 

 

Thanks,

 

Lucas

 

1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Based on your sample data (there is no DLY value to total on?), you can add a column stripping off the time, then do TOTALYTD off of that column

 

Column

Dt = DATEVALUE(DurTab[DLY_ST])

Measure

YTD = TOTALYTD(SUM(DurTab[DLY_DUR]), DurTab[Dt])

 

Capture.PNG

 

Hope this helps

David

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @test_123_e213,

 

One sample for your reference. If it doesn't meet your requirement, kindly share your excepted result to me.

 

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thanks for your help too!

 

Both answers were the same but it was still nice to see. 

 

Lucas

dedelman_clng
Community Champion
Community Champion

Based on your sample data (there is no DLY value to total on?), you can add a column stripping off the time, then do TOTALYTD off of that column

 

Column

Dt = DATEVALUE(DurTab[DLY_ST])

Measure

YTD = TOTALYTD(SUM(DurTab[DLY_DUR]), DurTab[Dt])

 

Capture.PNG

 

Hope this helps

David

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors