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
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.