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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I want to count the total transactions which have more than one “resolved” status. Each transaction is associated with an unique ID.
The following is an example of data:
Id | status | date |
1 | open | 01/02/2001 |
1 | resolved | 02/06/2001 |
2 | open | 03/03/2001 |
2 | resolved | 04/02/2001 |
2 | reslolved | 05/02/2001 |
3 | open | 01/02/2001 |
3 | resolved | 07/02/2001 |
3 | resolved | 09/02/2001 |
3 | resolved | 09/12/2001 |
The result should be two transaction with more than one resolved status
Solved! Go to Solution.
Hello @Anonymous
Give this a try, it gives me your expected result.
Measure =
COUNTROWS (
FILTER (
VALUES ( YourTable[Id] ),
CALCULATE (
COUNTROWS ( YourTable ),
KEEPFILTERS ( YourTable[status] = "Resolved" )
) > 1
)
)
If this solves your issues please mark it as the solution. Kudos 👍 are nice too.
Hi @Anonymous ,
To create a measure as below.
Measure =
VAR k =
FILTER ( 'Table', 'Table'[status] = "resolved" )
VAR a =
FILTER (
DISTINCT ( 'Table'[Id] ),
CALCULATE ( COUNTROWS ( 'Table' ), KEEPFILTERS ( k ) ) > 1
)
RETURN
COUNTROWS ( a )
For more details, please check the pbix as attached.
Hello @Anonymous
Give this a try, it gives me your expected result.
Measure =
COUNTROWS (
FILTER (
VALUES ( YourTable[Id] ),
CALCULATE (
COUNTROWS ( YourTable ),
KEEPFILTERS ( YourTable[status] = "Resolved" )
) > 1
)
)
If this solves your issues please mark it as the solution. Kudos 👍 are nice too.