This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |