<?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 Pass Parameters as Column Name in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Pass-Parameters-as-Column-Name/m-p/713345#M19654</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me with the below scenerio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the below Table&lt;/P&gt;&lt;P&gt;V_New&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I_new&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D_NEW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A_NEW&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wanted to create a Measure like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a product slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;I_New to V_New&lt;/P&gt;&lt;P&gt;V_New to D_New&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when the user selects a value from this slicer I want calculate the attach rate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now the User selects &lt;STRONG&gt;I_New to V_New&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now the measure should calculate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var A = SUM(I_New),filter(TableName,V_New&amp;gt;0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;var B = SUM(V_NEW),filter(TableName,V_New&amp;gt;0)&lt;/P&gt;&lt;P&gt;Retrun var A / var B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if the User selects&amp;nbsp;&lt;STRONG&gt;V_New to D_New&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its the same Formula but the filter condition should point to another column like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var A = SUM(I_New),filter(TableName,D_New&amp;gt;0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;var B = SUM(V_NEW),filter(TableName,D_New&amp;gt;0)&lt;/P&gt;&lt;P&gt;Retrun var A / var B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the fiter selection is Dynamic based on the user selection. &lt;STRONG&gt;Unpivot the columns solution will not work&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in Advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 21:10:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-12T21:10:10Z</dc:date>
    <item>
      <title>Pass Parameters as Column Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pass-Parameters-as-Column-Name/m-p/713345#M19654</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me with the below scenerio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the below Table&lt;/P&gt;&lt;P&gt;V_New&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I_new&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D_NEW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A_NEW&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wanted to create a Measure like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a product slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;I_New to V_New&lt;/P&gt;&lt;P&gt;V_New to D_New&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when the user selects a value from this slicer I want calculate the attach rate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now the User selects &lt;STRONG&gt;I_New to V_New&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now the measure should calculate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var A = SUM(I_New),filter(TableName,V_New&amp;gt;0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;var B = SUM(V_NEW),filter(TableName,V_New&amp;gt;0)&lt;/P&gt;&lt;P&gt;Retrun var A / var B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if the User selects&amp;nbsp;&lt;STRONG&gt;V_New to D_New&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its the same Formula but the filter condition should point to another column like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var A = SUM(I_New),filter(TableName,D_New&amp;gt;0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;var B = SUM(V_NEW),filter(TableName,D_New&amp;gt;0)&lt;/P&gt;&lt;P&gt;Retrun var A / var B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the fiter selection is Dynamic based on the user selection. &lt;STRONG&gt;Unpivot the columns solution will not work&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in Advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 21:10:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pass-Parameters-as-Column-Name/m-p/713345#M19654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T21:10:10Z</dc:date>
    </item>
  </channel>
</rss>

