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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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