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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Invesco
Helper V
Helper V

DAX to Work the number of practices that have shingrix as shown

Hi Experts

 

All my data is in on FACT Table - i want to count the practices that have product shingrix, based on my slicer for AREA, REGION and TERRITORY....cannot work this out

Invesco_0-1669729904002.png


My Measure

Reached =
CALCULATE(
    COUNT('dev_shc_shingrix_activity'[crm_call_name]),
    FILTER(ALLSELECTED('dev_shc_shingrix_activity'),'dev_shc_shingrix_activity'[Area]=MAX('dev_shc_shingrix_activity'[Area])&&
     NOT('dev_shc_shingrix_activity'[channel]) IN {"customer_facing_day","item_or_sample_drop","blank_call_type","Outlook_email"}))
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Invesco ,

Please have a try.

Reached =
CALCULATE (
    COUNT ( 'dev_shc_shingrix_activity'[crm_call_name] ),
    FILTER (
        ALL ( 'dev_shc_shingrix_activity' ),
        'dev_shc_shingrix_activity'[Area]
            = SELECTEDVALUE ( 'dev_shc_shingrix_activity'[Area] )
            && NOT ( 'dev_shc_shingrix_activity'[channel] )
            IN {
            "customer_facing_day",
            "item_or_sample_drop",
            "blank_call_type",
            "Outlook_email"
        }
    )
)

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Invesco ,

Please have a try.

Reached =
CALCULATE (
    COUNT ( 'dev_shc_shingrix_activity'[crm_call_name] ),
    FILTER (
        ALL ( 'dev_shc_shingrix_activity' ),
        'dev_shc_shingrix_activity'[Area]
            = SELECTEDVALUE ( 'dev_shc_shingrix_activity'[Area] )
            && NOT ( 'dev_shc_shingrix_activity'[channel] )
            IN {
            "customer_facing_day",
            "item_or_sample_drop",
            "blank_call_type",
            "Outlook_email"
        }
    )
)

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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