Forum Discussion
Anonymous
3 years agoNot applicable
What is wrong with my filter() formula?
Total Attended Appointment = CALCULATE(COUNT(UCS_Appointment_Data[a_appointid]),FILTER(Conversion_Code,[PowerBI_Appt_Code]="Intake Assessment") && FILTER(POWERBI_ATTENDANCE,POWERBI_ATTENDANCE[POWERBI_ATTENDACE]= "Attended"))
This is my relationship table.
I can only use it for 1 filter() but not two :C
you can see what kind of error before the name [PowerBI_Appt_Code] you need to specify the name of the table
Total Attended Appointment = CALCULATE ( COUNT ( UCS_Appointment_Data[a_appointid] ), ( 'Conversion_Code'[PowerBI_Appt_Code], POWERBI_ATTENDANCE[POWERBI_ATTENDACE] ) IN { ( "Intake Assessment", "Attended" ) } )
3 Replies
- Ahmedx
Super User
pls try this
Total Attended Appointment = CALCULATE ( COUNT ( UCS_Appointment_Data[a_appointid] ), ( [PowerBI_Appt_Code], POWERBI_ATTENDANCE[POWERBI_ATTENDACE] ) IN { ( "Intake Assessment", "Attended" ) } )- AnonymousNot applicable
Error is still showing:
Do you need other details?
- Ahmedx
Super User
you can see what kind of error before the name [PowerBI_Appt_Code] you need to specify the name of the table
Total Attended Appointment = CALCULATE ( COUNT ( UCS_Appointment_Data[a_appointid] ), ( 'Conversion_Code'[PowerBI_Appt_Code], POWERBI_ATTENDANCE[POWERBI_ATTENDACE] ) IN { ( "Intake Assessment", "Attended" ) } )