Skip to main content
Amelia Kohm 님이 #Tableau Public에 질문했습니다

I need to create a calculation that counts one group counseling session per date but counts the number of rows for all other service types. I've tried a number of solutions with the help of ChatGPT, but to no avail. Any ideas?

 

Calculation for a count depending on dimension value

답변 8개
  1. 2025년 7월 2일 오전 2:08

    @Amelia Kohm​ 

    You may use:

    SUM({FIXED [Service Type],DATE([Date / Time]):

    IF MAX([Service Type])="Group Counseling" THEN

    COUNTD([Group Counseling Count Per Day (Single Count)])

    ELSE

    COUNT([Service Type])

    END

    })

    @Amelia Kohm​ You may use:SUM({FIXED [Service Type],DATE([Date / Time]): IF MAX([Service Type])= 

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

0/9000