The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a issue i can not figure out in dax. i have 2 date fields in my report. i will try my best to explain the issue. so date1 is a snap shot evrey monday and thursday. date2 is the last time a part was moved. what im trying to do in dax is make something that will only bring in date2 if its 5 days older then date1. i also want this to be dynamic. for example lets say they select date1 from 3 weeks ago. i want it to only bring in date2 if its 5 days older then the selected date. so in this case 5 days older then date1 from 3 weeks ago. thanks for the help.
Solved! Go to Solution.
Hi,
Here is one way to do this:
Test data:
Dax:
Now place this measure as a filter like this:
Now the dates displayed are only the ones where the part was moved more than 5 days ago. E.g. 29.9.2023 is not shown since the last moved was 24.9.2023 -> within 4 days of the date.
You can apply further filters and the logic will work the same.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
Here is one way to do this:
Test data:
Dax:
Now place this measure as a filter like this:
Now the dates displayed are only the ones where the part was moved more than 5 days ago. E.g. 29.9.2023 is not shown since the last moved was 24.9.2023 -> within 4 days of the date.
You can apply further filters and the logic will work the same.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
@ValtteriN I was able to make this work after doing some changes. thanks for help.
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |