Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
We have a measure that uses the values of a parameter in its calculation of OK/not OK. This works great in our table. However, we want to show this in a visual using that measure as the legend. We can't get this to work.
I have created a sample Power BI report showing this exact problem. Does anyone have a way to get this to work?
Solved! Go to Solution.
Another working solution that avoids using the legend field is by creating a measure for each of the ok and no ok. Then, you just add them both to the dataset for the visual. Power BI then adds them to the legend area of the visual.
Hi @Norwaychris ,
Thank you for sharing your solution with us.
I am so glad to hear that your problem has been solved . Please consider Accept it as the solution to help the other members find it more quickly.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I still didn't get a solution as to whether it is possible to solve the issue with the legend. Though, if someone can tell me this isn't possible, I can mark that is the correct answer. I have only found workarounds so far, but haven't had anyone say straight forward this isn't possible. Thanks.
Another working solution that avoids using the legend field is by creating a measure for each of the ok and no ok. Then, you just add them both to the dataset for the visual. Power BI then adds them to the legend area of the visual.
I had one developer show me a solution using a cartesian product done in Power Query and then using the parameter to filter the result and then using that for legend. This won't work in my case, but it is a solution.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
83 | |
72 | |
49 |
User | Count |
---|---|
142 | |
139 | |
110 | |
69 | |
55 |