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
saud968
Super User
Super User

Slicer affecting the dax

I have the below 2 measures, further i have a calculated column - 
P1 Hour = IF(support__cw_ops_manage_case_merge[Priority] = "P1 - Critical" && support__cw_ops_manage_case_merge[Response Hour]>0 && support__cw_ops_manage_case_merge[Response Hour] <=1, "P1 - 1 hr", BLANK()) which I am using in a slicer.

Case Volume = CALCULATE(DISTINCTCOUNT(support__cw_ops_manage_case_merge[ID]), FILTER(  support__cw_ops_manage_case_merge,
         NOT(ISBLANK(support__cw_ops_manage_case_merge[RESPONSE_SLA_MINUTES]))))

P1 Case Volume =
CALCULATE(
    [Case Volume],
    FILTER(
        support__cw_ops_manage_case_merge,
        support__cw_ops_manage_case_merge[Priority]= "P1 - Critical" &&
        NOT(ISBLANK(support__cw_ops_manage_case_merge[RESPONSE_SLA_MINUTES]))
    ),
    REMOVEFILTERS(support__cw_ops_manage_case_merge[Priority])
)

As you can I select the slicer, and the case volume changes in the table visual

saud968_0-1711089718645.pngsaud968_1-1711089728552.png

As you see in the images. I have tried remove filters, all, allexpect but nothing is working. Please help

@Ahmedx @Idrissshatila @amitchandak @Ritaf1983 @Fowmy 

1 ACCEPTED SOLUTION
saud968
Super User
Super User

This was resolved 

Response Case Volume =
CALCULATE(
    [Case Volume],  
    FILTER(
        support__cw_ops_manage_case_merge,
        support__cw_ops_manage_case_merge[RESPONSE_SLA_MINUTES] <> BLANK()
        && (
            support__cw_ops_manage_case_merge[Priority] = "P1 - Critical"
            || support__cw_ops_manage_case_merge[Priority] = "P2 - High"
            || support__cw_ops_manage_case_merge[Priority] = "P3 - Medium"
            || support__cw_ops_manage_case_merge[Priority] = "P4 - Low"
            || support__cw_ops_manage_case_merge[Priority] = "Non-Priority"
       
        )
    )
)

View solution in original post

4 REPLIES 4
saud968
Super User
Super User

This was resolved 

Response Case Volume =
CALCULATE(
    [Case Volume],  
    FILTER(
        support__cw_ops_manage_case_merge,
        support__cw_ops_manage_case_merge[RESPONSE_SLA_MINUTES] <> BLANK()
        && (
            support__cw_ops_manage_case_merge[Priority] = "P1 - Critical"
            || support__cw_ops_manage_case_merge[Priority] = "P2 - High"
            || support__cw_ops_manage_case_merge[Priority] = "P3 - Medium"
            || support__cw_ops_manage_case_merge[Priority] = "P4 - Low"
            || support__cw_ops_manage_case_merge[Priority] = "Non-Priority"
       
        )
    )
)

Read about the IN function in DAX.

Hehe yes i realized now when you mentioned in it... It will shorter and crisper Dax.. Thanks

lbendlin
Super User
Super User

Slicers and other filters cannot affect calculated columns.  Calculated columns are called calculated columns because they are calculated once, during semantic model refresh, and then never again.

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