Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I have calendar date slicer having values for current month Sample value Calendar date : 2021-06-18'. when user selects value how can i write expression to get prior 7th day value from calendardate data.?
If selected value is 2021-06-18. 2nd calculated column should return 2021-06-11..
Thanks
Ref
Solved! Go to Solution.
Hi @refint650 ,
For measure you can use:
Last 7 days = MAX(Calendar[Date])-7
For calculated column:
Last 7 days = Calendar[Date]-7
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Let me try syntax, thanks
Hi @refint650 ,
For measure you can use:
Last 7 days = MAX(Calendar[Date])-7
For calculated column:
Last 7 days = Calendar[Date]-7
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @refint650 !
You can use following DAX to create a measure to return Date value prior 7 days of selected date value;
Last 7 Date = CALCULATE(MIN('Calendar'[Date]), DATEADD('Calendar'[Date], -7, DAY))
Regards,
Hasham
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |