Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi all!
I need to build a dynamic bar graph in which the legend is dynamic and is defined by the variable selected in a slicer, in this case, it could be selected to show the graph based on the following 3 values: Does anyone know if this can be done?
Thanks!
Solved! Go to Solution.
Hi, @Anonymous
Yes, you can make it without parameters but you still need to manually create a table containing the values in the slicer, then create a new measure as below and apply it to the visual.
Measure = SWITCH(MAX(Slicer[Field Name]),"Country",[Measure 1],"Product",[Measure 2],"Technology",[Measure 3])
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
@Anonymous , Try to use field parameters https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Thanks a lot, but is possible to make it without parameters?
Thanks
Hi, @Anonymous
Yes, you can make it without parameters but you still need to manually create a table containing the values in the slicer, then create a new measure as below and apply it to the visual.
Measure = SWITCH(MAX(Slicer[Field Name]),"Country",[Measure 1],"Product",[Measure 2],"Technology",[Measure 3])
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |