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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NZ0090
Frequent Visitor

Add row number in matrix

Hi everyone,

 

I have a matrix that looks like this:

NZ0090_1-1680745072112.png

 

How do I add row numbers to the matrix? The matrix can be expanded multiple levels. I've tried some solutions I found on the internet and I couldn't figure out how to make it work and most of the solutions I found are used with tables instead of matrix. 

 

Additional note: 

- I'm using Direct Query

- Matrix can be sorted by either Sales or Qty

 

Any help is appreciated! Thank you

 

1 REPLY 1
amitchandak
Super User
Super User

@NZ0090 , As of now you do not have the row number of the serial number , You need have some column at source that can do that

In table visual, we can use the window to get row number as measure

Learn Power BI: Window as Rank- why and Why not: https://youtu.be/Pu8y8bd5mb8

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.