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.
i wanted to create a calender filter for the user to select the date. i have to use the condition on the filter, when user select the date, then the report should give the results for "selecteddate>adddate and selecteddate<dropdate". how do i acheive this filter in power BI?
Hi @uselvaraj ,
I create a sample you can have a try.
Measure = var a = SELECTEDVALUE('Calendar'[Date]) return IF(ISFILTERED('Calendar'[Date]),CALCULATE(SUM('Table'[sales]),FILTER('Table','Table'[adddate ] <= a && 'Table'[dropdate] >= a)),SUM('Table'[sales]))
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |