<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Icons within Dax Measure returning Text. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826509#M149610</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunatelly, this is a way to use custom icons as conditional formatting, and I was able to do that already.&lt;BR /&gt;I am looking for a way, to use them as part of a text measure, where I could use multiple icons interweaved with text in a single table cell, or in a card visual.&lt;BR /&gt;I will mention that using char(s) is not the answer I am looking for either, as I am looking for flexibility in terms of the icons I am able to use.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Mike&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 09:32:00 GMT</pubDate>
    <dc:creator>Michal_Plawski</dc:creator>
    <dc:date>2024-04-10T09:32:00Z</dc:date>
    <item>
      <title>Custom Icons within Dax Measure returning Text.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3822982#M149518</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am working on a report for accessing information about uploaded documents (via MS Forms).&lt;BR /&gt;I created a measure, that depending on the row level, will either give us the name of the file with a conditional icon (they are added to the json theme) that reflects that file's extension, or a Sharepoint Icon, and a count of different files + Count of file types.&lt;BR /&gt;&lt;BR /&gt;This is the measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Document Title* =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;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/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'fact_OfficeForms Table'&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;" documents uploaded. "&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;_FileTypeCount&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" file type(s) : "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;_List&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case where there are multiple files in the row level context, instead of simply listing the file type extensions I would like to list the icons, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But I don't know if it is possible to use Icons that way, in text (not in conditional formatting).&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Mike.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3822982#M149518</guid>
      <dc:creator>Michal_Plawski</dc:creator>
      <dc:date>2024-04-09T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icons within Dax Measure returning Text.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826004#M149602</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496850" data-lia-user-login="Michal_Plawski" class="lia-mention lia-mention-user"&gt;Michal_Plawski&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/Tips-on-displaying-icons-based-on-field-values-in-Power-BI/ba-p/2195966" target="_blank"&gt;Tips on displaying icons based on field values in ... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/End-to-End-Example-for-Adding-Icons-to-Your-Power-BI-Report/ba-p/955198" target="_blank"&gt;End-to-End Example for Adding Icons to Your Power ... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-use-custom-icons-in-DAX/td-p/2801078" target="_blank"&gt;How to use custom icons in DAX - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 07:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826004#M149602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-10T07:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icons within Dax Measure returning Text.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826509#M149610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunatelly, this is a way to use custom icons as conditional formatting, and I was able to do that already.&lt;BR /&gt;I am looking for a way, to use them as part of a text measure, where I could use multiple icons interweaved with text in a single table cell, or in a card visual.&lt;BR /&gt;I will mention that using char(s) is not the answer I am looking for either, as I am looking for flexibility in terms of the icons I am able to use.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 09:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826509#M149610</guid>
      <dc:creator>Michal_Plawski</dc:creator>
      <dc:date>2024-04-10T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icons within Dax Measure returning Text.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826888#M149623</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496850" data-lia-user-login="Michal_Plawski" class="lia-mention lia-mention-user"&gt;Michal_Plawski&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Here's how you can modify your measure to include icons alongside the file extensions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Document Title* =&lt;BR /&gt;VAR _List = CONCATENATEX(&lt;BR /&gt;DISTINCT('fact_OfficeForms Table'[Extension]),&lt;BR /&gt;"&amp;lt;img src='" &amp;amp;&lt;BR /&gt;SWITCH(&lt;BR /&gt;'fact_OfficeForms Table'[Extension],&lt;BR /&gt;"pdf", "path_to_pdf_icon",&lt;BR /&gt;"docx", "path_to_docx_icon",&lt;BR /&gt;"xlsx", "path_to_xlsx_icon",&lt;BR /&gt;"path_to_default_icon"&lt;BR /&gt;)&lt;BR /&gt;&amp;amp; "' title='" &amp;amp; 'fact_OfficeForms Table'[Extension] &amp;amp; "'/&amp;gt;",&lt;BR /&gt;", "&lt;BR /&gt;)&lt;BR /&gt;VAR _FileTypeCount = DISTINCTCOUNTNOBLANK('fact_OfficeForms Table'[Extension])&lt;/P&gt;&lt;P&gt;VAR _Result =&lt;BR /&gt;IF(&lt;BR /&gt;HASONEVALUE('fact_OfficeForms Table'[ID]),&lt;BR /&gt;SELECTEDVALUE('fact_OfficeForms Table'[Document Title]),&lt;BR /&gt;IF(&lt;BR /&gt;COUNT('fact_OfficeForms Table'[ID]) = 0,&lt;BR /&gt;BLANK(),&lt;BR /&gt;DISTINCTCOUNTNOBLANK('fact_OfficeForms Table'[ID]) &amp;amp; " documents uploaded. " &amp;amp; _FileTypeCount &amp;amp; " file type(s) : " &amp;amp; _List&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;_Result&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 11:00:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Icons-within-Dax-Measure-returning-Text/m-p/3826888#M149623</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-04-10T11:00:53Z</dc:date>
    </item>
  </channel>
</rss>

