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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dates Between Start Of the Year uptill selected date.

how to find dates between start of the year up till selected date dax

 

For E.g. If i choose todays date  (20th May 2021) then it should go back start of the year called(1st jan 2021) and give me output uptill selected date. (I.e. 1st Jan 2021 Uptill 20th May 2021).

 

In result output the Month Name has been used.

Like (JAN till May).

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , That is ytd, you can use datesytd with a date table

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

So can i use that as slicer because when ever I am trying to close any date in one of the builded application then it's automatically giving me the output from the start of month uptill selected date month. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.