Forum Discussion
AlessandroBet
1 year agoHelper V
Column index
Hi, i need to insert a column index matching the value of other column Ex: Column to match --> Index A 1 B 2 C ...
- 1 year ago
Hi AlessandroBet - you can create a calculated column as like below:
Index1 =VAR LookupTable = ADDCOLUMNS( DISTINCT('soert_org'[Column to match]), "@Index", RANKX( DISTINCT('soert_org'[Column to match]), 'soert_org'[Column to match], , ASC, DENSE ) )RETURN LOOKUPVALUE( Soert_Org[Index], Soert_Org[Column to match], 'soert_org'[Column to match] )Hope this works.
AlessandroBet
1 year agoHelper V
thank you for your fast replay but i want add indesx with DAX code
- rajendraongole11 year agoSuper User
Hi AlessandroBet - you can create a calculated column as like below:
Index1 =VAR LookupTable = ADDCOLUMNS( DISTINCT('soert_org'[Column to match]), "@Index", RANKX( DISTINCT('soert_org'[Column to match]), 'soert_org'[Column to match], , ASC, DENSE ) )RETURN LOOKUPVALUE( Soert_Org[Index], Soert_Org[Column to match], 'soert_org'[Column to match] )Hope this works.- AlessandroBet1 year agoHelper V
It blocks here --> RETURN LOOKUPVALUE( Soert_Org[Index]
- rajendraongole11 year agoSuper User
you have to use a calculated column .
sharing the pbix FYR.