Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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?
Solved! Go to Solution.
@LeahS , Try using
DAX
CALCULATE(
COUNT(transactions[date_of_service]),
FILTER(
transactions,
transactions[date_of_service] <= (TODAY() - 14)
)
)
Proud to be a Super User! |
|
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
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
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
@LeahS , Try using
DAX
CALCULATE(
COUNT(transactions[date_of_service]),
FILTER(
transactions,
transactions[date_of_service] <= (TODAY() - 14)
)
)
Proud to be a Super User! |
|
User | Count |
---|---|
97 | |
76 | |
76 | |
47 | |
26 |