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

Measure to ignore filter | Slicer

Hi Experts

 

I am trying to sum the occurance of CFD , but i want the summed value to ignore what is selected in the Filter | Slicer 

VAR Amt give me the corrcet value but when i select f2f from the select the value return 0 and so on...CFD are not in the slicer..

Days # =
VAR Amt = Calculate(SUM(Table1[data_value]),
FILTER(Table1,Table1[activity_type_1] ="customer_facing_day"))+0
 
VAR TotalAmt = CALCULATE(Amt,ALLEXCEPT(Table1,Table1[activity_type_1]))
Return
TotalAmt



TypeData Value
f2f1
phone1
CFD1
CFD1
Phone1
Virtual1
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Invesco ,

 

Please try this:-

Days # =
CALCULATE (
    SUM ( Table1[data_value] ),
    FILTER (
        ALL ( Table1[activity_type_1] ),
        Table1[activity_type_1] = "customer_facing_day"
    )
) + 0

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

5 REPLIES 5
Samarth_18
Community Champion
Community Champion

Hi @Invesco ,

 

Please try this:-

Days # =
CALCULATE (
    SUM ( Table1[data_value] ),
    FILTER (
        ALL ( Table1[activity_type_1] ),
        Table1[activity_type_1] = "customer_facing_day"
    )
) + 0

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Thanks you sir you gave me a clue and i have fixed the solution

HI Samarth - it ignores the filter but the sum of the CFD is incorrect know - should be 2....based on the date column....

@Invesco Based on data provided below code would be ideal code:-

Days # = 
CALCULATE (
    SUM ( 'Table (5)'[Data Value] ),
    FILTER (
        ALL ( 'Table (5)'[Type] ),
       'Table (5)'[Type] = "CFD"
    )
) + 0

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

apologies the CFD days does not remain at 2 when filtering the data in the table based on the sclier.....NOT WORKING MY ERROR...can you provide a pbix with the calculation

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.