Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
for example. 1/31/2024 is changing,
How can we ensure that the date in time slicer in Power BI is the latest date in database ? I don't wan to change it every month.
Thanks
Solved! Go to Solution.
@jsjcjsjc , In that case, you can use below measure that you can use as a filter.
Measure =
VAR _date =
CALCULATE ( MAX ( Sheet1[date range] ), ALL ( Sheet1[date range] ) )
RETURN
IF ( MAX ( Sheet1[date range] ) <= EOMONTH ( _date, -1 ), 1, 0 )
Output ;-
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @jsjcjsjc , I am afraid if I am missing something. However, if you have not added any explicit filter on the slicer it will take all the available data from the dataset that includes the latest dates.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
yes, you are right. I missed some infomarion.
I hope to keep the date is The last day of the previous month of the new date in the database.
@jsjcjsjc , In that case, you can use below measure that you can use as a filter.
Measure =
VAR _date =
CALCULATE ( MAX ( Sheet1[date range] ), ALL ( Sheet1[date range] ) )
RETURN
IF ( MAX ( Sheet1[date range] ) <= EOMONTH ( _date, -1 ), 1, 0 )
Output ;-
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
User | Count |
---|---|
84 | |
82 | |
66 | |
52 | |
46 |
User | Count |
---|---|
100 | |
48 | |
42 | |
39 | |
38 |