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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Otaku
Regular Visitor

List of value in power bi

Hello, 

I am using Direct Query mode in Power BI.

In my underlying database, I have implemented partitions and clustering. I want to filter data in Power BI using a slicer based on a label (e.g., "Country Name" = Ireland) and send the corresponding SQL query to filter by id_country=32. Essentially, I want to replicate the functionality of SAP BO's 'List of Values'.

However, I would like to avoid overly complex solutions in Power Query as they might cause performance issues, particularly with dynamic M parameters.

How can I achieve this efficiently in Power BI?

Best regards

3 REPLIES 3
VijayP
Super User
Super User

@Otaku 

Create a Field Parameter using Country (Name it as Selection ) and you will get a slicer 

Create a Measure with SWITCH 

SWITCH(Selection, "Country1", calculated(measure,filter(table,country=country1) and so on) 

It should work efficiently!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP any suggestion? thanks

Hello @VijayP
Thank you for your response.
let explain more my need :


I want to be able to partition a BigQuery table by country name (string field) so that when end users filters to a specific country in BI application, they query a subset of the table in doing so.

Integer based partitioning works, but no one knows which country name is associated with which id_country.

Is there a common workaround for this?

Any thoughts/feedback/best practices would be greatly appreciated!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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