Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
Hi,
Try this approach:
Measure1 = COUNTROWS(TABLE)
Measure1 running total = CALCULATE([Measure1],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))
Hope this helps.
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
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
74 | |
64 | |
49 | |
36 |
User | Count |
---|---|
115 | |
87 | |
80 | |
59 | |
40 |