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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
vincentn
Frequent Visitor

Filter in Query editor with parameter

Hello,

 

 

For simplicity sake I'm going to explain the problem in an example scenario.

 

All the data from different company's is stored in one database (MySQL).

Each company has its own salesmen.

Capture.PNG

 

Goal: 

 

First a parameter needs to be given that equals one of the company's names.

Then you can only see data from that particular company in the data tab. So that data from other company's cannot be used when making visualisations.  

 

What I tried:

 

  1. Made the relationship between Company and salesmen
  2. opened power Query editor
  3. set a filter on the company name base on a parameter.  Now I can only see the one company equals the company's name (1 row in the company's table).

Expected outcome:

        only data from the one company (in this case "Belfius") can be accesed when making visualisations.

       Capture2.PNG

Actual outcome:

 I can still see data from other company's.

 

Capture2.PNG

I tried to explain it briefly and I hope that you an idea what I'm trying to achieve. If you have any further questions please ask.

 

Cheers,

 

Vincent Neuts

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@vincentn,

"Goal: 

 

First a parameter needs to be given that equals one of the company's names.

Then you can only see data from that particular company in the data tab. So that data from other company's cannot be used when making visualisations.  "


You can review the PBIX file about how to set filter parameter, However, to achieve  the above goal, you can also create RLS roles.

1.PNG2.PNG



Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@vincentn,

"Goal: 

 

First a parameter needs to be given that equals one of the company's names.

Then you can only see data from that particular company in the data tab. So that data from other company's cannot be used when making visualisations.  "


You can review the PBIX file about how to set filter parameter, However, to achieve  the above goal, you can also create RLS roles.

1.PNG2.PNG



Regards,
Lydia

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.