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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.