SVG Sparklines - Line
Hi,
Is it possible to use this when the report is connected to live connection.
I was able to get the Image URL but I am unable to change the data category for the calculated measure to ImageURL. Only Uncategorized, Longitude and Latitude options are available, rest are greyed out.
Thanks,
Krishna
David great post!
Thanks for sharing it. Trying to emulate your model I only get the values string and not the charts. Do am I missing something?
- deldersveld7 years agoResident Rockstar
Did you include the "data:image/svg+xml;utf8," prefix before the SVG text and then set the measure's data category to ImageURL?
- cmajs7 years agoFrequent Visitor
I think so. This is what I have:
VAR SVGImageURL = IF(HASONEVALUE('Diario'[Cadena]),"data:image/svg+xml;utf8," &"<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 100 100'>" &"<polyline fill='none' stroke='" & LineColor &"' stroke-width='3' points='" & Lines &"'/></svg>",BLANK())- deldersveld7 years agoResident Rockstar
Apart from where this forum transformed my reply from an actual colon symbol to &colun, the variable looks good. Is 'Diario'[Cadena] in your table then as well?