Forum Discussion
Filter calculation by date using date slicer
Hello,
How to solve this issue like - filter calculation by date slicer using end date. That start date will not affect calculations.
I used filter('Date', 'Date'[Date'] <=MAX('Date','Date'[Date']) but still measure reacts to start date of slicer.
How to resolve this issue?
Hi, Analitika
Try this:var _EndDate=MAXX(ALLSELECTED('Table'),'Table'[Date])Result:
If this doesn't work for you, could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented? And It would be great if there is a sample file without any sesentive information here. It makes it easier to give you a solution.
Best Regards,
Community Support Team _ Zeon ZhengIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- parry2kSuper User
Analitika try this measure:
filter(ALL('Date'), 'Date'[Date'] <=MAX('Date'[Date'])✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- AnalitikaPost Prodigy
I have already tried this but didn't help me
- parry2kSuper User
Analitika can you share sample data with the expected output Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490 - v-angzheng-msftCommunity Support
Hi, Analitika
Try this:var _EndDate=MAXX(ALLSELECTED('Table'),'Table'[Date])Result:
If this doesn't work for you, could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented? And It would be great if there is a sample file without any sesentive information here. It makes it easier to give you a solution.
Best Regards,
Community Support Team _ Zeon ZhengIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.