Forum Discussion
Help needed: Check for matches if higher than 2 = TRUE
- Anonymous2 years ago
Hi Bennijudge
As you hope to make this KPI filterable by a time slicer in Power BI further, I believe using a DAX solution will be better. You can create a measure like below. DISTINCTCOUNT('Table'[Items]) will count the number of distinct items in the scope where it is evaluated. When you change the time frame, the measure will be evaluated according to the new time frame. You can add this measure to a visual along with the [Entries] column.
KPI Measure = IF(DISTINCTCOUNT('Table'[Items])>1, "TRUE", "FALSE")DISTINCTCOUNT function (DAX) - DAX | Microsoft Learn
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi Bennijudge
As you hope to make this KPI filterable by a time slicer in Power BI further, I believe using a DAX solution will be better. You can create a measure like below. DISTINCTCOUNT('Table'[Items]) will count the number of distinct items in the scope where it is evaluated. When you change the time frame, the measure will be evaluated according to the new time frame. You can add this measure to a visual along with the [Entries] column.
KPI Measure = IF(DISTINCTCOUNT('Table'[Items])>1, "TRUE", "FALSE")
DISTINCTCOUNT function (DAX) - DAX | Microsoft Learn
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!