Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I need to count de sequence a batch number and a description repeats except if description = "OK", here es my current table:
Here is what I'm looking for:
Thank you
Solved! Go to Solution.
Hi @ratercero,
I have the March Update and have built a very simple version which I have uploaded here. Please download and see if it works for you.
Hi @ratercero,
Please try this slightly modified column.
Sequence Count = COUNTROWS(
FILTER(
'Table',
'Table'[BATCH_NUMBER_1]=EARLIER('Table'[BATCH_NUMBER_1])
&& 'Table'[DESCRIPTION]<>"ok"
&& 'Table'[DESCRIPTION] = EARLIER('Table'[DESCRIPTION])
&& 'Table'[c_FinishedDT] <= EARLIER('Table'[c_FinishedDT]
)
))
Hi @ratercero
How close is this to your requirements?
Sequence Count = COUNTROWS(
FILTER(
'Table',
'Table'[BATCH_NUMBER_1]=EARLIER('Table'[BATCH_NUMBER_1])
&& 'Table'[DESCRIPTION]="ok"
&& EARLIER('Table'[DESCRIPTION]) <> "ok"
)
)
Hi @ratercero,
I have the March Update and have built a very simple version which I have uploaded here. Please download and see if it works for you.
This is very close to whagt im looking for, but notice on batch "005326" Description "RP" , is twice, so it should count as 2 the second time it shows.
Hi @ratercero,
Please try this slightly modified column.
Sequence Count = COUNTROWS(
FILTER(
'Table',
'Table'[BATCH_NUMBER_1]=EARLIER('Table'[BATCH_NUMBER_1])
&& 'Table'[DESCRIPTION]<>"ok"
&& 'Table'[DESCRIPTION] = EARLIER('Table'[DESCRIPTION])
&& 'Table'[c_FinishedDT] <= EARLIER('Table'[c_FinishedDT]
)
))
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 27 | |
| 25 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 54 | |
| 46 | |
| 38 | |
| 28 | |
| 21 |