Reply
Sam70
New Member
Partially syndicated - Outbound

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

Syndicated - Outbound

@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))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Syndicated - Outbound

@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))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound

Hi @amitchandak ,

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

Thank you

 

Regards

Syndicated - Outbound

Hi @amitchandak ,

Sam70_0-1704474892390.png

No idea about the error. Guide me.

Regards

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)