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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper IV
Helper IV

Constant count through out the time line

Hi All,


I would like to have a DAX measure where it shows the count of entire rows in a table and that being constant through out the time line.


For example in the given table1 image there are 8 rows and I want 8 to be constant throug the time line i.e from min(datetable[date) to max(table1[date sold]). So when we put that in a line visual its more like a straight line.


I can achieve it using a calculated column, however, I would need only a DAX Measure which can full fill this. 


Screenshot 2020-07-16 at 5.42.52 PM.png

Super User
Super User
Super User
Super User

@amitchandak Thank you so much. It worked like charm 🙂

Community Champion
Community Champion

Hi @labuser1235 

try a measure like

CALCULATE(COUNTROWS(table1), ALL(table1[date sold]) )

do not hesitate to give a kudo to useful posts and mark solutions as solution

@az38 Thank you so much for your quick response. 

All(table1[dates old]) is giving me only 1 as constant line on that particular day. However, when tried allselected it worked perfectly fine. 


Screenshot 2020-07-17 at 10.39.02 PM.png

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors