Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello community,
I'm in a hardship while trying to use the SWITCH function to make my chart figure out a dynamic legend and colors.
As you can see here, I have a legend that interpret my data with two different metrics :
So when I use the slicer to filter it I would like to the filtered data to return 2 different colors and to show on the legend as well, the other possibility that I have right now is to remove the legend and return all the different data with a singular color, however, when I use the slicer all the legend remains at he chart :
Could you enlighten me how I can proper use the SWITCH measure in this case ? Other solutions are very welcome as well.
Thank you in advance
Hi, @AGCL
Sample data:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Technically yes, however, I would like to keep my slicer with the main specification while it brings forth the two different data and interpret them as two different for the same main think.
Exemple : Dell - I can have data with 2 Dell different notebooks, but they are still Dell, so when I slice Dell they are suppose to appear at the chart with two different colors and legends
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
76 | |
63 | |
51 | |
47 |
User | Count |
---|---|
211 | |
82 | |
61 | |
61 | |
60 |