I need to calculate the No.of days from start of the year till the selected date in the slicer.Please help in a dax .Thanks in advance!!Preeti Yadav
Go to Solution.
@Preeti_Yadav You the following measure:
Days YTD =
var __dateselected = MAX(Dates[Date]) return
DATE( YEAR(__dateselected), 1 , 1 ),
⭕ Subscribe and learn Power BI from these videos ⚪ Website ⚪ LinkedIn ⚪ PBI User Group
View solution in original post
Find out more about the May 2023 update.
Share your Data Story with the Community in the Data Stories Gallery.