Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.