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 All,
I need to fetch the "Start Date" in the slicer, to calculate the "End Date" of the slicer. (which should be the date of 3 months from the "Start Date". I will be using the DateAdd function for that.) Also, "End Date " is essential to calculate using that date.
Here I have highlighted the start date of the slicer which I need to be extracted.
I have used below mentioned DAX to pull, but no luck with that. I'll be grateful If someone can give me a helping hand with this.
Date Selected =
CALCULATE ( MIN ( INFO_TABLE[START_DATE] ) )
Thanks
To get the "Start Date" from the slicer in PowerBI, you can use the following DAX expression:
Start Date = MIN(INFO_TABLE[START_DATE])
This expression will give you the minimum date selected in the slicer for the "Start Date" column in the INFO_TABLE.
To calculate the "End Date" using the "Start Date", you can use the DateAdd function as follows:
End Date = DateAdd(Start Date, 3, "Month")
This will give you the date that is 3 months from the selected "Start Date".
Hi @jaweher899
I have used that method to fetch the "Start Date". But still, the result is similar to the previous one.
Btw, the "End Date" calculation works fine. Thank you very much for that.
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 |
---|---|
132 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |