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
Sam70
New Member

Count Rows based on Columns

Hi,

Below is table data in PowerBI (Desktop)

Sam70_0-1704461912096.png

I want to create another table where data should be like

Sam70_1-1704462822514.png

Being very new to BI, unable to generate the required output. Need help.

Regards

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sam70 , In a table visual you can use a measure

 

countrows(Table)

 

Or can use count of any column

 

 

If you need calculated column, you can use Summarize

 

 

Summarize(Table, Table[Track], Table[ParameterA], Table[Account ID], Table[MonthName], Table[Customer Name], "Count", countrows(Table))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Sam70 , In a table visual you can use a measure

 

countrows(Table)

 

Or can use count of any column

 

 

If you need calculated column, you can use Summarize

 

 

Summarize(Table, Table[Track], Table[ParameterA], Table[Account ID], Table[MonthName], Table[Customer Name], "Count", countrows(Table))

Hi @amitchandak ,

I made a mistake. Used your formula in a new table and it worked perfect.

Thank you

 

Regards

Hi @amitchandak ,

Sam70_0-1704474892390.png

No idea about the error. Guide me.

Regards

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.