March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi!
I have table with column 'owner'.
I need to make 'index' which is incremented if the owner is equal to 'G' :
owner ... index
G 1
S 1
G 2
S 2
G 3
T 3
T 3
T 3
T 3
S 3
Thanks
Solved! Go to Solution.
Hi @sertim,
I think you need to add an original sort index column to let the formula loop through the table.
Below is the sample.
Original table:
Write calculated column to calculate index based on id.
Index = COUNTROWS(FILTER(ALL('Sample'),[ID]<=EARLIER([ID])&&[Owner]="G"))+0
Result:
Regards,
Xiaoxin Sheng
Hi @sertim,
I think you need to add an original sort index column to let the formula loop through the table.
Below is the sample.
Original table:
Write calculated column to calculate index based on id.
Index = COUNTROWS(FILTER(ALL('Sample'),[ID]<=EARLIER([ID])&&[Owner]="G"))+0
Result:
Regards,
Xiaoxin Sheng
It works!
This is what I need.
Many thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
206 | |
150 | |
97 | |
78 | |
69 |