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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
labuser1235
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

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
4 REPLIES 4
amitchandak
Super User
Super User

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

az38
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
LinkedIn

@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

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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