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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
lennox25
Post Patron
Post Patron

HOW TO COUNT ALL ROWS IN A TABLE INCLUDING DUPLICATES (STORES) AND DIVIDE BY 7

Can anyone help? I need to count all rows in a table including duplicates and divide that by 7?

1 ACCEPTED SOLUTION
DataVitalizer
Solution Sage
Solution Sage

Hi @lennox25 
You can count all rows in a table by using the function COUNTROWS(Your_table).
To divide that by 7 you will update the code as below

= DIVIDE (COUNTROWS(Your_table), 7)

 

Did it work 👍 A kudos would be appreciated ‌‌📢 Mark it as a solution to help spreading knowledge

View solution in original post

2 REPLIES 2
DataVitalizer
Solution Sage
Solution Sage

Hi @lennox25 
You can count all rows in a table by using the function COUNTROWS(Your_table).
To divide that by 7 you will update the code as below

= DIVIDE (COUNTROWS(Your_table), 7)

 

Did it work 👍 A kudos would be appreciated ‌‌📢 Mark it as a solution to help spreading knowledge

Worked perfectly  - Thank you!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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