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
Paulyeo11
Impactful Individual
Impactful Individual

Straight Table how to add one more column for count number of row ?

Hi All

I have below table , i like to add one more column it will display 1 on every row , and i can sum up this column , so that i know this table have how many row.

Paulyeo11_0-1609390665161.png

https://www.dropbox.com/s/s0zmu80qoyioghq/PBT_V01038%20count%20number%20coy%20at%20table.pbix?dl=0

Above is my PBI file .

 

Paul

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Paulyeo11 , I doubt there is dynamic row counter for table. Please log a new idea- https://ideas.powerbi.com/ideas/

 

You have create a column like

 

Countrows(summarize(Table, Table[Company], Table[Group_]))

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Paulyeo11 , I doubt there is dynamic row counter for table. Please log a new idea- https://ideas.powerbi.com/ideas/

 

You have create a column like

 

Countrows(summarize(Table, Table[Company], Table[Group_]))

amitchandak
Super User
Super User

@Paulyeo11 , I think distinctcount of company. File attached after signature

 

amitchandak
Super User
Super User

@Paulyeo11 , Are you looking for distinctcount(Table[Brand])

Hi Amit

What i need is count number of row on the striaght table. for example i have below table , which compute which are the new account in 2021 ? and i like to add one more column to display count number of row.

Paulyeo11_0-1609392118488.png

 

Paul

amitchandak
Super User
Super User

@Paulyeo11 , Nor clear Any one of the two measures

 


Measure= calculate(countrows(Table))

or
Measure=  calculate(countrows(Table),allselected(Table))

Hi Amit

I try using youe expression , i get 23 , which is wrong , how to get 8 ?

Paulyeo11_0-1609391539105.png

https://www.dropbox.com/s/781a9g77rklb267/PBT_V01038%20count%20number%20coy%20at%20table.pbix?dl=0

Above link is my PBI file

Paul

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.