Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Slicer not updating Calculated Measure

I have the following measures: Type1_Value = CALCULATE(SUM('Table'[Number]), 'Table'[Type] = Type1 Type2_Value = CALCULATE(SUM('Table'[Number]), 'Table'[Type] = Type2 Total_Value = Type1_Value +...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi, Anonymous 

    According to your description, you want to add a type slicer but now it dos not work. 

    If this , you can try to use keepfilters() fumction , like this:

    Type1_Value = CALCULATE(SUM('Table'[Number]),KEEPFILTERS( 'Table'[Type] = Type1))
    

    For more information, you can refer to :
    KEEPFILTERS function (DAX) - DAX | Microsoft Learn

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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