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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi i have a set of data from different dates and for each date there is milliseconds.
what i am trying to achieve is a cumulative count until my first blank and then start again from 1
Desired result:
Diff | New Column |
21.1 | 1 |
21.2 | 2 |
21.3 | 3 |
Null | Null |
25 | 1 |
25.2 | 2 |
26 | 3 |
27 | 4 |
Solved! Go to Solution.
Hi @Anonymous
You can use this Custom Column.
See file attached as well
=let myindex=[Index] in Table.RowCount(Table.SelectRows(#"Added Custom1",each [Custom]=null and [Index]<=myindex))+1
@Anonymous
Please see attached file's Query Editor for clarity as well
Hi, thanks allot, maybe you can also help me crate this column:
Thanks again
Diff | Index | Sprint No |
21.1 | 1 | 1 |
21.2 | 2 | 1 |
21.3 | 3 | 1 |
Null | Null | Null |
18 | 1 | 2 |
18.1 | 2 | 2 |
19 | 3 | 2 |
20 | 4 | 2 |
Null | Null | Null |
|
|
|
Hi @Anonymous
You can use this Custom Column.
See file attached as well
=let myindex=[Index] in Table.RowCount(Table.SelectRows(#"Added Custom1",each [Custom]=null and [Index]<=myindex))+1
marvelous!
@Anonymous
Assuming you have an Index Column starting from 0, I believe you can use this Custom Column from Query Editor
Replace AddedIndex with the PreviousStep name in your Query Editor
let myindex=[Index] in let mytable=Table.SelectRows(AddedIndex,each [Index] < myindex and [Diff]=null) in if [Diff] <> null then if Table.IsEmpty(mytable)=false then [Index]-Table.Max(mytable,"Index")[Index] else [Index]+1 else null
User | Count |
---|---|
98 | |
76 | |
76 | |
49 | |
27 |