Forum Discussion

NewbieJono's avatar
NewbieJono
Post Partisan
2 years ago
Solved

year to date

Hello, i want to show a chart which shows the volumes of YTD (starting 1st April) going back in time. so for today it would shows   Bar 1 - 1st April 2024 - 21st April 2024 Bar 2 - 1st April 2023 ...
  • Alex87's avatar
    Alex87
    2 years ago

    same logic for each bar you want to display

     

    Dax Measure:

     Volume from 1st April 2024 to 21st April 2024 =

    CALCULATE( SUM(YourData[Volume]), 

          DATESBETWEEN(

                  Date[Date], 

                  DATE(2024, 4, 1),

                  DATE(2024, 4, 21)
    ))