Forum Discussion

abc_777's avatar
abc_777
Icon for Solution Specialist rankSolution Specialist
5 years ago
Solved

how to exclude filter in KPI

Dear Concern, 

In power bi I have 3 KPI. they all changes when i select any date  but I want to keeep filter option in two KPI and another KPI one I just dont want to change filter value. 

SO meaning when date select two kpi wil change value accodring but one will not 

 

please assist

26 Replies

  • abc_777 ,

     

    Try like

    calculate([KPI3], removefilters(Date))

    or

    calculate([KPI3], removefilters(Date[Date]))

    • abc_777's avatar
      abc_777
      Icon for Solution Specialist rankSolution Specialist

      ryan_mayu ,

      when i do your suggession my KPI shows the maximum.

      amitchandak if you please explain more that would be great

       

      what i want is I have KPI card show total number of total employee

       

      and other two KPI show their monthly salary and average salary.

       

      and I want to keep filter on to emploeyye monthly salary and average salary but dont want filter on number of  Employee

       

      this is just an example. in qlik sense they can do via $ and 1 so same thing want to power BI

       

      thanks

      • ryan_mayu's avatar
        ryan_mayu
        Icon for Super User rankSuper User

        abc_777 

        the KPI will not be affected by the filters. Then you need to write the correct DAX to show your value or use visual filter to fix the filter selection.

  • Cres's avatar
    Cres
    New Member

    Over-all Employees = 

         COUNTX(

                    ALL(Table_Name),

                    Table_Name[Employee_Name]

         )

     

    //The ALL function shields this KPI from other slicer filters and other context filters.