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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
LeahS
Frequent Visitor

Count of Max Date with relative date filter

Hi,

 

I am trying to count the max "date of service" against a relative time period such as today-14.  Below is my current code but I keep getting an error stating the true/false has to specify one column, but I'm only using one column.  Any ideas?

 

CALCULATE(count(transactions[date_of_service]), max(transactions[date_of_service]) <= (TODAY()-14))
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@LeahS , Try using

DAX
CALCULATE(
COUNT(transactions[date_of_service]),
FILTER(
transactions,
transactions[date_of_service] <= (TODAY() - 14)
)
)

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @LeahS,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @LeahS,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @LeahS,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

bhanu_gautam
Super User
Super User

@LeahS , Try using

DAX
CALCULATE(
COUNT(transactions[date_of_service]),
FILTER(
transactions,
transactions[date_of_service] <= (TODAY() - 14)
)
)

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors