Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
@powerbiexpert22 Check the below measure using the SVG method. You can play with the colors at your will
@powerbiexpert22 You can build the bars with different colors. Now it depends if you use unicode shapes there are websites full of them.
Check the one below.
Unicode Shapes Text Symbols - Copy Paste Dump (r74n.com).
Or if you choose the SVG bar method then you need to edit the SVG code to fit your calculations.
The color is the slightest issue
@powerbiexpert22 Check the below measure using the SVG method. You can play with the colors at your will
Hi @powerbiexpert22 ,
Your solution is great, @BIstvan . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.
You can use svg images to draw the desired pattern. You can refer to the example below.
Measure =
"data:image/svg+xml;utf8,
<svg xmlns='http://www.w3.org/2000/svg' width='102' height='12'>
<rect x='0' y='0' stroke='green' stroke-width='4' width='102' height='12' fill='rgba(0,0,0,0)'> </rect>
<rect x='1' y='1' width='"&100*[Private Count]&"' height='10' fill='deepskyblue' />
<rect x='"&1+100*[Private Count]&"' y='1' width='"&100*[Public Count]&"' height='10' fill='blue'/>
<rect x='"&1+100*[Private Count]+100*[Public Count]&"' y='1' width='"&100*[Business Count]&"' height='10' fill='red'/>
<text x='"&100*[Private Count]&"' y='8' text-anchor='end' font-size='5'>"&100*ROUND([Private Count],2)&"%" &"</text>
<text x='"&100*[Private Count]+100*[Public Count]&"' y='8' text-anchor='end' font-size='5'>"&100*ROUND([Public Count],2)&"%" &"</text>
<text x='100' y='8' text-anchor='end' font-size='5'>"&100*ROUND([Business Count],2)&"%" &"</text>
</svg>"
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Indeed. With SVG images images you can do a lot more. Incorporate them in to tables or matrixes
@powerbiexpert22 You can check the below video from @Bas Dohmen
It explains you in detail how to do it
Hi @BIstvan ,
Can it be possible to show bars in different colors (each bar should have different color) ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |