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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
akwang
Advocate II
Advocate II

Slicer Control

Hi I have a data table that has transactions for a product sold telling the amount of net value, net qty & net weight which corresponds practically to Sales revenue, packets sold & KG product sold. I want to create a slicer that would adjust all the visuals to which ever unit i select ($$, EA or KG). Can someone advise if that is possible?

 

slicer.png

1 ACCEPTED SOLUTION
GabrielSantos
Resolver I
Resolver I

This might take some time as you would have to adjust each of the measures that feed into your visualizations.

 

I would start with creating a parameter table and assigning an arbitrary numeric value to each display type you'd like. For example:

 

Display | Value

   $$            1

   EA            2

   KG           3

 

Then create a measure that returns the value, such as the following:

 

DisplayValue := Max(ParameterTable[Value). Then place the "Display" column as a slicer, allowing users to select any of the displays. Their input will return a value that you can then use to adjust measures.

 

Say you want to show the sum of each of those. You can write a measure such as this.

 

Switch(

             [DisplayValue],

               1, sum(Sales[Net Value],

               2, sum(Sales[Net Qty],

               3, sum(Sales[NetWeight[Kg])

             )

 

Obviously you would have to tailor this to each of your existing measures, but the general idea stands. Good luck!

View solution in original post

1 REPLY 1
GabrielSantos
Resolver I
Resolver I

This might take some time as you would have to adjust each of the measures that feed into your visualizations.

 

I would start with creating a parameter table and assigning an arbitrary numeric value to each display type you'd like. For example:

 

Display | Value

   $$            1

   EA            2

   KG           3

 

Then create a measure that returns the value, such as the following:

 

DisplayValue := Max(ParameterTable[Value). Then place the "Display" column as a slicer, allowing users to select any of the displays. Their input will return a value that you can then use to adjust measures.

 

Say you want to show the sum of each of those. You can write a measure such as this.

 

Switch(

             [DisplayValue],

               1, sum(Sales[Net Value],

               2, sum(Sales[Net Qty],

               3, sum(Sales[NetWeight[Kg])

             )

 

Obviously you would have to tailor this to each of your existing measures, but the general idea stands. Good luck!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.