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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Abdult
Regular Visitor

KPI

Can a drop down of KPI be created in PBI? Think about a situation where a user wants to view a headcount, attrition rate & hires by location. Can the user switch between these measures using dropdown?

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Abdult

If I understand the request correctly, you can:

1. Create a ancillary 1-column table, KPITable, with the names of the KPIs.  Example:

KPI

Headcount

AttritionRate

Hires

2. Place KPITable[KPI] in a slicer. The user can selct here the desired KPI 

3. Create the measures that will calculate each of the KPIs

[ Headcount_Measure ]

[ AttritionRate_Measure ]

[ Hires_Measure ]

4. Create a generic measure that will calculate the desired KPI based on the user's selection. Something like:

 

GenMeasure =
VAR selected_ =
    SELECTEDVALUE ( KPITable[KPI] )
RETURN
    SWITCH (
        selected_,
        "Headcount", [ Headcount_Measure ],
        "AttritionRate", [ AttritionRate_Measure ],
        "Hires", [ Hires_Measure ]
    )

 

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Abdult

If I understand the request correctly, you can:

1. Create a ancillary 1-column table, KPITable, with the names of the KPIs.  Example:

KPI

Headcount

AttritionRate

Hires

2. Place KPITable[KPI] in a slicer. The user can selct here the desired KPI 

3. Create the measures that will calculate each of the KPIs

[ Headcount_Measure ]

[ AttritionRate_Measure ]

[ Hires_Measure ]

4. Create a generic measure that will calculate the desired KPI based on the user's selection. Something like:

 

GenMeasure =
VAR selected_ =
    SELECTEDVALUE ( KPITable[KPI] )
RETURN
    SWITCH (
        selected_,
        "Headcount", [ Headcount_Measure ],
        "AttritionRate", [ AttritionRate_Measure ],
        "Hires", [ Hires_Measure ]
    )

 

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.