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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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]
)
))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 43 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |