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
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
v-xiaoyan-msft
Community Support
Community Support

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.