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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How do we show TOTAL number of rows in a table based on created date

I am completely a newbie to powerBI. I have a simple table with a "ID" and "CREATED_ON" fields.

I want to create a visualization that shows, the total number of rows in the table based on the "CREATED_ON" field.

The COUNTROWS(TABLE) Displays the records that were created on that particular date. but it does not show the total records including previous dates as well.

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Try this approach:

  1. Create a Calendar Table and build a relationship from the CREATED_ON field of your base data table to the Date column of your Calendar Table
  2. To your slicer, drag Date from the Calendar Table and select any one date there
  3. Write these measures

Measure1 = COUNTROWS(TABLE)

Measure1 running total = CALCULATE([Measure1],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous,

What type of count you mean? The current 'create on' fields row count or the cumulative row count that less than or equal to the current row?
If you mean the current row count, you can create a table visual with two 'create on' fields, one used as category and setting to 'do not summary' the other use aggregate mode 'count'.
If you mean cumulative row count, you can create a measure formula with AlB's formula.

Regards,

Xiaoxin Sheng

AlB
Community Champion
Community Champion

Hi @Anonymous 

If you want to show for each date the number of rows in the table with that or or a previous date, you can:

1. Place Created on in the rows of a matrix visual

2. Place this measure in the matric visual 

Measure =
CALCULATE (
    COUNT ( Table1[Created_On] ),
    FILTER (
        ALL ( Table1[Created_On] ),
        Table1[Created_On] <= MAX ( Table1[Created_On] )
    )
)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors