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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
MBone
New Member

Filtering data on multiple parameters

I have data that is structured as below:

 

Record IDSystem Name For VariableValue
1LikesBananasYes
1LikesOranges

No

1HasPetYes
2HasPetYes
2LikesBananasNo
3HasPetNo
3LikesOrangesYes
3DrivesACarNo
3PersonNameJohnny

 

Most are yes/no answers, which are the ones I care about.

 

And I have a table structured as below containing labels of answers.

 

System Name For VariableUser Friendly Name
LikesBananasDoes the person like bananas?
LikesOrangesDoes the person like oranges?
HasPetDoes the person have a pet?
DrivesACarDoes the person drive a car?
PersonNameWhat is the name of the person?

 

 

What I want to be able to get out is filter out records on multiple parameters. For instance, I would like to find (the count of) all Record IDs where user likes bananas and drives a car. Or another example, what is the ratio of users that like oranges where users have a pet. Additionally, I would like to be able to have the user friendly name display instead of system name for the variable.

 

What is the best way to get this data out? I assume I would need some measure for each possible filter and work off of that, but is there a simpler way?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@MBone 

I am glad to help you.  

According to your description, you want to know how to filter data on multiple parameters? 

If I understand you correctly, then you can refer to my solution. 

 

First, after connecting to the data source, please create a relationship. 

vfenlingmsft_0-1720493122072.png

 

 

 

Then you can open Power Query Editor to create several parameters as follows. 

vfenlingmsft_1-1720493122078.png

vfenlingmsft_2-1720493146779.png

 

 

 

Then you can use the parameters to filter in the corresponding fields. Here I have made two small examples to describe the specific use of Parameters: 

The first example is to find LikeBananas as Yes and HasPet as Yes: 

vfenlingmsft_3-1720493146783.png

 

 

vfenlingmsft_4-1720493162777.png

 

 

vfenlingmsft_5-1720493162779.png

 

 

vfenlingmsft_6-1720493201398.png

 

Result : 

vfenlingmsft_7-1720493201400.png

 

 

The second example is to find LikeBananas as Yes and DrivesACar as No: 

 

vfenlingmsft_8-1720493224027.png

 

Result : 

vfenlingmsft_9-1720493224029.png

 

 

You can select specific values for filtering, or you can filter dynamically by modifying the value of Parameters. 

 

The final result presented in the visualization: 

vfenlingmsft_10-1720493235272.png

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,@MBone 

I am glad to help you.  

According to your description, you want to know how to filter data on multiple parameters? 

If I understand you correctly, then you can refer to my solution. 

 

First, after connecting to the data source, please create a relationship. 

vfenlingmsft_0-1720493122072.png

 

 

 

Then you can open Power Query Editor to create several parameters as follows. 

vfenlingmsft_1-1720493122078.png

vfenlingmsft_2-1720493146779.png

 

 

 

Then you can use the parameters to filter in the corresponding fields. Here I have made two small examples to describe the specific use of Parameters: 

The first example is to find LikeBananas as Yes and HasPet as Yes: 

vfenlingmsft_3-1720493146783.png

 

 

vfenlingmsft_4-1720493162777.png

 

 

vfenlingmsft_5-1720493162779.png

 

 

vfenlingmsft_6-1720493201398.png

 

Result : 

vfenlingmsft_7-1720493201400.png

 

 

The second example is to find LikeBananas as Yes and DrivesACar as No: 

 

vfenlingmsft_8-1720493224027.png

 

Result : 

vfenlingmsft_9-1720493224029.png

 

 

You can select specific values for filtering, or you can filter dynamically by modifying the value of Parameters. 

 

The final result presented in the visualization: 

vfenlingmsft_10-1720493235272.png

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


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

foodd
Super User
Super User

Hello @MBone , and thank you for sharing a question with the Community.   The following is informational.  Please  remember to adhere to the decorum of the Community Forum when asking a question.

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.