Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
The goal is to have a trailing 12 month sparkline on a matrix table. To achieve this, I used a SVG code . However, I am having issues with my SVG code (see below).
Solved! Go to Solution.
Hi @katyfailoo ,
Step1, Check whether the “LineColor” and the “Lines” parameters return the correct value.
Step2, modify the SVG code.
Measure =
// My test
//Do not copy the following code directly, “data:image/svg+xml;utf8” has changed.
"data:image/svg+xml;utf8," &
"
<svg xmlns='http://www.w3.org/2000/svg' version='1.1' x='0px' y='0px' viewBox='0 0 100 100'>
<polyline points='20,20 40,25 60,40 80,120 120,140 200,180' style='fill:none; stroke:#2301B8AA; stroke-width:3' />
</svg>
"
The most important thing is not to forget to set the measure to "Image URL".
Or please provide your sample .pbix file if your problem is still not resolved
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Im new in pbi but
if I wish to build a cumulative sum sparkline ?
how have to change SparklineTable
Hi @katyfailoo ,
Step1, Check whether the “LineColor” and the “Lines” parameters return the correct value.
Step2, modify the SVG code.
Measure =
// My test
//Do not copy the following code directly, “data:image/svg+xml;utf8” has changed.
"data:image/svg+xml;utf8," &
"
<svg xmlns='http://www.w3.org/2000/svg' version='1.1' x='0px' y='0px' viewBox='0 0 100 100'>
<polyline points='20,20 40,25 60,40 80,120 120,140 200,180' style='fill:none; stroke:#2301B8AA; stroke-width:3' />
</svg>
"
The most important thing is not to forget to set the measure to "Image URL".
Or please provide your sample .pbix file if your problem is still not resolved
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@katyfailoo - SVG Sparklines - Line (powerbi.com) Try this Quick Measure gallery entry.
@katyfailoo , you have already checked these links ?
https://www.youtube.com/watch?v=xLD8HKwPWHE
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
66 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |