Forum Discussion
Giving Index Number
- 5 years ago
The solution I posted was for measures, not new calculated columns in the data table.
If you want to add these columns to the actual data table, you need:
1) New column concatenating date and order number
Concatenate date and order number = INT(INT('Table'[Delivery Date ]) & 'Table'[Order Number])2) New column for the index:
Index = RANKX ( FILTER ( ALL ( 'Table' ), 'Table'[Material] = EARLIER ( 'Table'[Material] ) ), 'Table'[Concatenate date and order number], , ASC )and you get this:
- 5 years ago
Good point! You can solve it for example by "inflating" the date expression: INT(table[Date]) * 100000000000000 + table[order number]
Hi erhan_79 ,
below you will find a great blog post from Raza Rad, explains exactly how to do what you are trying to accomplish
https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
Thanks,
- erhan_795 years agoPost Prodigy
Dear richbenmintz
thanks for your support but i can not use Query side because this table is referenced from a live connection.I need a dax formula to create a column on power bı desktop .your quide is tellinng about query solving.Is ıt possible thet you ca share with me DAX formula ?