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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
dnzdvd
New Member

multiple field parameters controlled by one slicer or another filed parameter

Hello

 

I created a field parameter for with grouping argument. I added measures simply as count and percent according to each group. I have another field parameter using different measures but with the same grouping as the first one. How can I create another filter that filters both field parameter filters at the same time?
When I say grouping, from the syntax of field parameter, I am referring to the 'count' and 'percentage' groups:

Record Count = {
    ("ID", NAMEOF('_measures'[dist_id]), 1 , "count"),
    ("NAME", NAMEOF('_measures'[dist_name), 0, "count"),
    ("ID %", NAMEOF(_measures[dist_id_%]), 2, "percentage"),
    ("NAME %", NAMEOF(_measures[dist_name_%]), 3, "percentage")
}

The other field parameter uses different measure but same grouping of count and percentage. I would like a single slicer/filter that filters both visuals using different parameters.
 
Thank you
1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Thanks for the reply from lbendlin , please allow me to provide another insight:

Hi, @dnzdvd 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

 

vlinyulumsft_0-1729838940881.png

 

 

vlinyulumsft_1-1729838940883.png

2.Create the following calculated table to combine the contents of the two parameters into one table:

 

Table =
VAR p1 =
    SELECTCOLUMNS (
        'Parameter1',
        "1", 'Parameter1'[Parameter],
        "2", 'Parameter1'[Value4]
    )
VAR p2 =
    SELECTCOLUMNS (
        'Parameter2',
        "1", 'Parameter2'[Parameter2],
        "2", 'Parameter2'[Value4]
    )
RETURN
    UNION ( p1, p2 )

 

 

vlinyulumsft_2-1729838998005.png

 

3.Secondly, create two measures, each applied to the respective slicers:

 

OOO1 =
VAR CC1 =
    VALUES ( 'Table'[1] )
RETURN
    IF ( MAX ( 'Parameter1'[Parameter] ) IN CC1, 1, 0 )

 

vlinyulumsft_3-1729839026479.png

 

OOO2 =
VAR CC2 =
    VALUES ( 'Table'[1] )
RETURN
    IF ( MAX ( 'Parameter2'[Parameter2] ) IN CC2, 1, 0 )

 

 

vlinyulumsft_4-1729839050523.png

4.Here are the final results:

vlinyulumsft_5-1729839059666.png

 

 

vlinyulumsft_6-1729839059667.png

5.Of course, you might also consider establishing a relationship between the two parameters:

vlinyulumsft_7-1729839075877.png

 

However, the drawback is that if you create a slicer, it will only filter the contents of this table and those that belong to the same group as the selected content.

 

vlinyulumsft_8-1729839075878.png

vlinyulumsft_10-1729839106840.png

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

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

 

Thanks for the reply from lbendlin , please allow me to provide another insight:

Hi, @dnzdvd 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

 

vlinyulumsft_0-1729838940881.png

 

 

vlinyulumsft_1-1729838940883.png

2.Create the following calculated table to combine the contents of the two parameters into one table:

 

Table =
VAR p1 =
    SELECTCOLUMNS (
        'Parameter1',
        "1", 'Parameter1'[Parameter],
        "2", 'Parameter1'[Value4]
    )
VAR p2 =
    SELECTCOLUMNS (
        'Parameter2',
        "1", 'Parameter2'[Parameter2],
        "2", 'Parameter2'[Value4]
    )
RETURN
    UNION ( p1, p2 )

 

 

vlinyulumsft_2-1729838998005.png

 

3.Secondly, create two measures, each applied to the respective slicers:

 

OOO1 =
VAR CC1 =
    VALUES ( 'Table'[1] )
RETURN
    IF ( MAX ( 'Parameter1'[Parameter] ) IN CC1, 1, 0 )

 

vlinyulumsft_3-1729839026479.png

 

OOO2 =
VAR CC2 =
    VALUES ( 'Table'[1] )
RETURN
    IF ( MAX ( 'Parameter2'[Parameter2] ) IN CC2, 1, 0 )

 

 

vlinyulumsft_4-1729839050523.png

4.Here are the final results:

vlinyulumsft_5-1729839059666.png

 

 

vlinyulumsft_6-1729839059667.png

5.Of course, you might also consider establishing a relationship between the two parameters:

vlinyulumsft_7-1729839075877.png

 

However, the drawback is that if you create a slicer, it will only filter the contents of this table and those that belong to the same group as the selected content.

 

vlinyulumsft_8-1729839075878.png

vlinyulumsft_10-1729839106840.png

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

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

 

lbendlin
Super User
Super User

If you synchronize them anyway then you don't need the second slicer.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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