Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a table with client names, their review dates and how many days till their next review:
| Client | Review due | Days till next review | Booked |
| John Smith | 20/02/2021 | -12 | 1 |
| Jane Smith | 10/03/2021 | 5 | 1 |
| Jean Smith | 06/04/2021 | 32 | 0 |
What I would love to achieve (but not sure how) is a report page with a matrix visual, 3 cards and a slicer, and:
Solved! Go to Solution.
Hi, @redhughes
If you want use SELECTEDVALUE function as a filter in CALCULATE function, you need put it in FILTER function firstly. You can make some changes to the third Measure.
sure =
CALCULATE (
COUNTA ( clients[!days-till-next-light-review-value] ),
clients[!days-till-next-light-review-value] >= 0,
FILTER (
'clients',
clients[!days-till-next-light-review-value]
<= SELECTEDVALUE ( 'Review-cutoff'[Review-cutoff] )
)
) + 0
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @redhughes
You can consider SELECTEDVALUE function to get current value in Slicer and do calculations for the fields you want to add to Cards with the value from Slicer.
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Will this work for the table/matrix though?
Hi, @redhughes
If you create Measures with the value from SELECTEDVALUE, then use these Measures to create table or matrix visual. Then you will get variable result according to the value of the Slicer. You can refer SELECTEDVALUE Function DAX and Using the SELECTEDVALUE function in DAX.
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-cazheng-msft, I've created a parameter called 'review-cutoff' and added a slicer to the page. then created a measure:
Hi, @redhughes
If you want use SELECTEDVALUE function as a filter in CALCULATE function, you need put it in FILTER function firstly. You can make some changes to the third Measure.
sure =
CALCULATE (
COUNTA ( clients[!days-till-next-light-review-value] ),
clients[!days-till-next-light-review-value] >= 0,
FILTER (
'clients',
clients[!days-till-next-light-review-value]
<= SELECTEDVALUE ( 'Review-cutoff'[Review-cutoff] )
)
) + 0
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 64 | |
| 44 | |
| 42 | |
| 34 | |
| 23 |
| User | Count |
|---|---|
| 199 | |
| 124 | |
| 104 | |
| 74 | |
| 55 |