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,
How can I convert the following to a measure?
Column =
COUNTROWS( (
FILTER (
schedule,
schedule[start_date] <= EARLIER ( [Date] )
// && schedule[end_date] >= EARLIER ( [Date] ) && schedule[no. of attachments] <> 0
&& schedule[end_date] >= EARLIER ( [Date] ) && schedule[no. of attachments] > 0
&& schedule[type] = "Appointment"
)
))
Solved! Go to Solution.
@pieduke88 Try:
Column =
VAR __Date = MAX('Dates'[Date])
VAR __Result =
COUNTROWS(
FILTER (
ALLSELECTED(schedule),
schedule[start_date] <= __Date
&& schedule[end_date] >= __Date && schedule[no. of attachments] > 0
&& schedule[type] = "Appointment"
)
)
@pieduke88 Try:
Column =
VAR __Date = MAX('Dates'[Date])
VAR __Result =
COUNTROWS(
FILTER (
ALLSELECTED(schedule),
schedule[start_date] <= __Date
&& schedule[end_date] >= __Date && schedule[no. of attachments] > 0
&& schedule[type] = "Appointment"
)
)