Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Want to create Index column using dax for a table visual

Hi,

 

Lets say i have a dataset 

 

A   B   C

1   2   3
4   5   6
7   8   9

I want to create an index column by excluding C column

A   B   Index

1   2   1
4   5   2
7   8   3

 I want to use Dax measure only as i am in live connection mode and cant go to edit queries.



 

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a New Table..

 

Test189Out = SELECTCOLUMNS(Test189Rnk,"A",Test189Rnk[A],
                                      "B",Test189Rnk[B],
                                      "Index",RANKX(Test189Rnk,Test189Rnk[C],Test189Rnk[C],ASC)
                          )

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a New Table..

 

Test189Out = SELECTCOLUMNS(Test189Rnk,"A",Test189Rnk[A],
                                      "B",Test189Rnk[B],
                                      "Index",RANKX(Test189Rnk,Test189Rnk[C],Test189Rnk[C],ASC)
                          )

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors