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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
admin11
Memorable Member
Memorable Member

How to count how many row of my Table ?

Hi All

 

My existing table :-

admin11_0-1640827864373.png

 

I hope to achieve like below :-

 

admin11_1-1640828024220.png

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @admin11 ,

You can add a index column from Power Query and use it in your visual

NikhilKumar_0-1640831674577.png

 

View solution in original post

smpa01
Community Champion
Community Champion

@admin11  you can create a rowNum with RANKX. Please understand that there is no concept of RoW Number like you create one in excel. But you can create a dynamic Ranking which will be same as Row Num based on the measure like following.

 

_rowNum = RANKX(ALLSELECTED(SALES[BRAND_C]),[Sales Vari %],,DESC)

 

 

smpa01_0-1640832076314.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @admin11 ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @admin11 ,

You can add a index column from Power Query and use it in your visual

NikhilKumar_0-1640831674577.png

 

smpa01
Community Champion
Community Champion

@admin11  you need to provide a sample, else hard to tell

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@smpa01 

Thank you for your help.

https://www.dropbox.com/s/lep6phoh6hyr9ov/How%20to%20count%20number%20of%20row.pbix?dl=0

 

Above link is my sample file.

 

Paul

smpa01
Community Champion
Community Champion

@admin11  you can create a rowNum with RANKX. Please understand that there is no concept of RoW Number like you create one in excel. But you can create a dynamic Ranking which will be same as Row Num based on the measure like following.

 

_rowNum = RANKX(ALLSELECTED(SALES[BRAND_C]),[Sales Vari %],,DESC)

 

 

smpa01_0-1640832076314.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.