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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors