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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-rongtiep-msft
Community Support
Community Support

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
v-rongtiep-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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