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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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]
)
))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |