Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello ,
I want to count the distinct IDs which have completed the process cycle which is from 'New Email' to 'Complete' only. Other IDs with an incomplete process cycle which does not End with a 'Complete' or start with 'New Email' needs to be ignored.
ID | Process Status | Seq |
11A | NEW EMAIL | 10 |
11A | PROCESSING | 20 |
11A | PROCESSING TRANSFORMATION | 30 |
11A | PROCESSING TRANSFORMATION | 30 |
11A | PROCESSING TRANSFORMATION | 30 |
11A | PROCESSING OUTPUT | 40 |
11A | VALIDATING | 50 |
11A | WORKQUEUE | 70 |
11A | COMPLETE | 100 |
12A | NEW EMAIL | 10 |
12A | PROCESSING | 20 |
12A | PROCESSING TRANSFORMATION | 30 |
12A | PROCESSING TRANSFORMATION | 30 |
12A | PROCESSING TRANSFORMATION | 30 |
12A | PROCESSING OUTPUT | 40 |
12A | VALIDATING | 50 |
12A | WORKQUEUE | 70 |
12A | COMPLETE | 100 |
13B | NEW EMAIL | 10 |
13B | PROCESSING | 20 |
13B | TERMINATING | 1000 |
14C | NOTIFICATION | 99 |
15D | NEW EMAIL | 10 |
15D | PROCESSING
| 20 |
In the above example Only IDs - 11A and 12A have completed the process hence I need a count of 2 as my result.
Tried this which didn't work!
Test_Msr = CALCULATE(Distinctcount(ID) , FILTER( Min(seq = 10) && Max(seq = 100)))
Can someone please help me with the dax!
Solved! Go to Solution.
@RRaj_293 , Try using below DAX
Test_Msr =
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
'Table',
'Table'[ID] IN
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Process Status] = "NEW EMAIL" && 'Table'[Seq] = 10
),
"ID", 'Table'[ID]
) &&
'Table'[ID] IN
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Process Status] = "COMPLETE" && 'Table'[Seq] = 100
),
"ID", 'Table'[ID]
)
)
)
Proud to be a Super User! |
|
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
@RRaj_293 , Try using below DAX
Test_Msr =
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
'Table',
'Table'[ID] IN
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Process Status] = "NEW EMAIL" && 'Table'[Seq] = 10
),
"ID", 'Table'[ID]
) &&
'Table'[ID] IN
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Process Status] = "COMPLETE" && 'Table'[Seq] = 100
),
"ID", 'Table'[ID]
)
)
)
Proud to be a Super User! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |