Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Paginated report printing Icons

Hi Everyone, 

I'm stuck with a scenario where I need to print the matrix to a csv/ excel and one of the column is representing the base 64 icon which is using a dax calculation. The problem that I'm facing is when I try to export,  exporting to csv gives only the underlying base64 url instead of the icon. Have anyone faced this situation or can provide a help with this?

 

Regards,

Jishnu

5 REPLIES 5
Markzolotoy
Impactful Individual
Impactful Individual

@DavisBI Are you saying I can have an SVG image n Power BI paginated reports?

DavisBI
Solution Specialist
Solution Specialist

Hi, @Anonymous ,

 

Paginated report can export the icon to excel file, but I don't think you're using paginated report, 

"csv/ excel ", " dax calculation", sounds like you're using Power BI Report that hosts on Power BI Report Server instead of paginated report, export image (including icon) is not supported for Power BI Report currently.

 

Mark this post as solution if this helps, thanks!

Anonymous
Not applicable

Hi @DavisBI ,

Thanks for the response and sorry for not making it clear. What you stated is correct, the report is not moved to paginated one, it is still under proposal and I'd like to know if there is a way to print icons if it is moved to the Paginated report. 
My current Power BI report has the following measure and showing it in a matrix visual against an availability and country dimensions:

 

Icon =
var sta =

min(StatusTable[StatusId])
return
switch(TRUE(),
sta = 1, "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100' height='100' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40' stroke='Blue-Gray' stroke-width='4' fill='#39424c' /> </svg>",
sta = 2, "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100' height='100' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40' stroke='lightgray' stroke-width='4' fill='#808080' /> </svg>",
sta = 3, "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100' height='100' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40' stroke='#00338d' stroke-width='4' fill='#005EB8' /> </svg>")

and when this matrix is printed, the exported one shows this value itself.

 

As you suggested, if I move to paginated report, what would be my expression? Also, is it printable?

 

Regards,

Jishnu



Yes! This is perfectly feasible in Paginated as whatever renders on rpeort would be rendered in your excel and PDF exports. Please go ahead with Paginated! Also Paginated supports many more print options than pbix . 

DavisBI
Solution Specialist
Solution Specialist

@Anonymous  It's printable, but the SWITCH() function in Report Builder is a little bit different from DAX, you can refer to this document.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.