<?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: Use expression for a property value in custom visual? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899579#M29974</link>
    <description>&lt;P&gt;Thanks, Daniel.&amp;nbsp; Will get up to speed on that and try it out and then post back.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 17:48:25 GMT</pubDate>
    <dc:creator>jprdynamicapps</dc:creator>
    <dc:date>2021-06-14T17:48:25Z</dc:date>
    <item>
      <title>Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1897289#M29939</link>
      <description>&lt;P&gt;Is there any way for me to allow an expression to be used for a property value?&lt;/P&gt;&lt;P&gt;ideally, this would be a singl text property that the user could set using a Dax expression, but I'm open to workarounds as well. Anything that could get the value of a Dax expression to my custom visual as a property as opposed to a data value.&amp;nbsp;&lt;BR /&gt;Thanks.&amp;nbsp;&lt;BR /&gt;John&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 00:44:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1897289#M29939</guid>
      <dc:creator>jprmsn</dc:creator>
      <dc:date>2021-06-13T00:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1897731#M29940</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/250737"&gt;@jprmsn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, you're looking to supply the results of a measure into the propertied pane, rather than a user manually specifying a value? If so, then &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/conditional-format" target="_self"&gt;enabling conditional formatting&lt;/A&gt; for a property supports measures that return text.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 23:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1897731#M29940</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-06-13T23:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899579#M29974</link>
      <description>&lt;P&gt;Thanks, Daniel.&amp;nbsp; Will get up to speed on that and try it out and then post back.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899579#M29974</guid>
      <dc:creator>jprdynamicapps</dc:creator>
      <dc:date>2021-06-14T17:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899627#M29976</link>
      <description>&lt;P&gt;Unfortunately, apparently not supported for table and matrix dataviews.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 18:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899627#M29976</guid>
      <dc:creator>jprdynamicapps</dc:creator>
      <dc:date>2021-06-14T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899847#M29979</link>
      <description>&lt;P&gt;For &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;matrix&lt;/FONT&gt; mappings, it will work if you just want to populate a single property, which is how I've interpreted your original question - essentially like the way the &lt;STRONG&gt;Title text&lt;/STRONG&gt; property works in the standard &lt;STRONG&gt;Title&lt;/STRONG&gt; menu.&lt;/P&gt;
&lt;P&gt;Although yes, it likely won't work if you want to do data bound mapping (e.g. rows to colors).&lt;/P&gt;
&lt;P&gt;I've implemented this approach in the HTML Content visual, which uses a &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; mapping. It works perfectly fine for the &lt;STRONG&gt;"No Data" Message&lt;/STRONG&gt; property:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dm-p_0-1623711113214.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/533487i93E27B66E0D3C57E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dm-p_0-1623711113214.png" alt="dm-p_0-1623711113214.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here's a link to the &lt;A href="https://github.com/dm-p/powerbi-visuals-html-content/blob/5ea12cbd832c6670a8da227df2a0145f69b3c02a/src/visual.ts#L226" target="_self"&gt;location in the code where it's implemented&lt;/A&gt; so that you can hopefully take this and use it, if it suits your use case.&lt;/P&gt;
&lt;P&gt;There's also a second property in the source code beneath the linked one, and this should turn up in all reports shortly, once the visual has been fully approved through to AppSource, but both work fine.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 22:59:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1899847#M29979</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-06-14T22:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression for a property value in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1901401#M29992</link>
      <description>&lt;P&gt;Thanks, Daniel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm that all anyone needs to do to support a formula for a color, text, icon, or web URL property is to&lt;BR /&gt;- update to API at least 3.5&lt;BR /&gt;- add an the import of&amp;nbsp;VisualEnumerationInstanceKinds&lt;BR /&gt;- add "propertyInstanceKind:&amp;nbsp;{yourPropertyName:&amp;nbsp;VisualEnumerationInstanceKinds.ConstantOrRule}" to enumerateObjectInstances.&lt;/P&gt;&lt;P&gt;Huge thanks also for the pending reincarnation of the HTML visual!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-expression-for-a-property-value-in-custom-visual/m-p/1901401#M29992</guid>
      <dc:creator>jprdynamicapps</dc:creator>
      <dc:date>2021-06-15T12:49:20Z</dc:date>
    </item>
  </channel>
</rss>

