March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Team,
I am using the below measure and it works fine, but I need to replace the date with the measures (Start Date & End Date) which I have created.
Start Date = DATEVALUE("01-01-"&SELECTEDVALUE('Calendar'[Year]))
Solved! Go to Solution.
Hi Amit,
I am calculating YTD but 2 of our business unit has no entries in last 2 months and thus YTD shows blank.
So I have used the above formula to replace the blanks. Now In my formula, I would like to replace the dates (in red font) with the slicer selections (Start and end dates dax measures is build based on that). When I tried to incorporate these 2 measures in YTD measure, it doesn't work.
Do you have a solution for this? Any new measure is acceptable.
Hi Amit,
I am calculating YTD but 2 of our business unit has no entries in last 2 months and thus YTD shows blank.
So I have used the above formula to replace the blanks. Now In my formula, I would like to replace the dates (in red font) with the slicer selections (Start and end dates dax measures is build based on that). When I tried to incorporate these 2 measures in YTD measure, it doesn't work.
Do you have a solution for this? Any new measure is acceptable.
@shareezsaleem ,Not very clear what you need here
For YTD you can try like
YTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = eomonth(_max,-1*MONTH(_max))+1
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |