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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MasterSonic
Helper IV
Helper IV

Count rows in date table where date is ...

Hi guys

 

trying to count rows in date column.

Simply I would like to get result as count rows where date is "20/07/2020" and muliply by 50.

 

I did try countrows but it gives error about not supporting date and text values

1 ACCEPTED SOLUTION
Anonymous
Not applicable

ok please try :

 

Measure = CALCULATE(COUNTX(Table1,Table1[Column]),FILTER(Table1,Table1[Date] = DATE(2022,07,20))) * 50

Screenshot 2022-10-28 193754.png

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

thats weird can you try :

 

 

Calcualte(Count(table[date]),filter(table,table[date] = DATE(2022,07,20))) * 50

 

if this works please consider acceptig it as solution and kudos

 

HI there,

this bit works fine

Calcualte(Count(table[date]),filter(table,table[date] = DATE(2022,07,20))

 but after adding 

* 50

I got this error
A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

Anonymous
Not applicable

i think you missed a bracket when closing the calculate please make sure

Calcualte(Count(table[date]),filter(table,table[date] = DATE(2022,07,20))

this should be 

Calcualte(Count(table[date]),filter(table,table[date] = DATE(2022,07,20)))

 

Anonymous
Not applicable

ok please try :

 

Measure = CALCULATE(COUNTX(Table1,Table1[Column]),FILTER(Table1,Table1[Date] = DATE(2022,07,20))) * 50

Screenshot 2022-10-28 193754.png

 

Thank You,

verision with 

COUNTX

works  

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.