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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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

@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
Super User
Super User

@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

@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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.