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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
mscla
Advocate I
Advocate I

Filter tables values of a columns filtered in field parameter slicer

Hi for everyone!

I'm looking for a way to do this.

I looked in several posts here and couldn't find it.
my main table has 6 columns that indicate the possible priority of lots in which each sale (key) may belong to certain vendors.

 

KEYJOHN_ANA_PETERJOHN_PETER_ANAPETER_ANA_JOHNPETER_JOHN_ANAANA_PETER_JOHNANA_JOHN_PETER
10255434ANAANAANAANA  
10256107ANAANAANAANAANAANA
10260048JOHNJOHN  ANAJOHN
10258289ANAANA  ANAANA
10253959PETERPETERPETERPETERPETERPETER
10256459ANAANAANAANAANAANA
10251625PETERPETERPETERPETERPETERPETER
10256807JOHNJOHNANAANAANAJOHN
10256349ANAANAPETERANAANAANA
10252767ANAANAANAANAANAANA
10255534  ANAANAANA 
10250133  JOHN ANA 
10253187ANAANAJOHN ANAANA
10256974ANAANAANA  ANA
10255843      
10251743PETERPETERPETERPETERPETERPETER


I created a Field parameter in power bi that allows the user to choose which of the 6 columns he wants as batch priority and I created calculated columns that define each batch, it looked like this

 

ParameterParameter FieldsParameter Orderlot1lot2lot3
JOHN, ANA, PETER table[JOHN_ANA_PETER]0JOHNANAPETER
JOHN, PETER, ANA table[JOHN_PETER_ANA]1JOHNPETERANA
PETER, ANA, JOHN table[PETER_ANA_JOHN]2PETERANAJOHN
PETER, JOHN, ANA table[PETER_JOHN_ANA]3PETERJOHNANA
ANA, PETER, JOHN table[ANA_PETER_JOHN]4ANAPETERJOHN
ANA, JOHN, PETER table[ANA_JOHN_PETER]5ANAPETERJOHN

 

Now, how do I link the parameter with the table so that it filters the keys based on the applied filter

For example, if the user selects the parameter "JOHN, ANA, PETER" the visuals will bring the following?

lot1

KEYVendor
10250133JOHN
10253187JOHN


lot2

KEYVendor
10255434ANA
10256107ANA
10256459ANA
10256807ANA
10252767ANA
10255534ANA
10256974ANA

 

lot3

KEYVendor
10253959PETER
10251625PETER
10256349PETER
10251743PETER

 

mscla_0-1719829079187.png

 

sales_parameter_filter.pbix 
thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mscla ,

Based on my testing, please try the following methods:

1.Open the power query editor. Duplicate the table and unpivot columns.

vjiewumsft_0-1719891008855.png

vjiewumsft_1-1719891020431.png

2.Drag the field into the matrix visual.

3.Create the new measure to filter the values.

Vendor john = 
VAR value_ = SELECTEDVALUE('Unpivot table'[Value])
RETURN
IF(value_ = "JOHN", 1, 0)

4.Drag the measure into the Filters pane and enter the show items is 1.

vjiewumsft_2-1719891028029.png

5.The result is shown below.

vjiewumsft_3-1719891040139.png

6.Repeat the above and the result is shown below.

vjiewumsft_4-1719891047872.png

 

Best Regards,

Wisdom Wu

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
mscla
Advocate I
Advocate I

It's working perfectly, thanks @Anonymous 

Anonymous
Not applicable

Hi @mscla ,

Based on my testing, please try the following methods:

1.Open the power query editor. Duplicate the table and unpivot columns.

vjiewumsft_0-1719891008855.png

vjiewumsft_1-1719891020431.png

2.Drag the field into the matrix visual.

3.Create the new measure to filter the values.

Vendor john = 
VAR value_ = SELECTEDVALUE('Unpivot table'[Value])
RETURN
IF(value_ = "JOHN", 1, 0)

4.Drag the measure into the Filters pane and enter the show items is 1.

vjiewumsft_2-1719891028029.png

5.The result is shown below.

vjiewumsft_3-1719891040139.png

6.Repeat the above and the result is shown below.

vjiewumsft_4-1719891047872.png

 

Best Regards,

Wisdom Wu

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

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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