<?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: Create Calculated Fields based on Field Parameter selected in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3832733#M1237656</link>
    <description>&lt;P&gt;Hope the latter part of this video helps(from the 8 minute mark onwards) :&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=7mlYt6x-XCo&amp;amp;list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&amp;amp;index=31" target="_blank"&gt;https://www.youtube.com/watch?v=7mlYt6x-XCo&amp;amp;list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&amp;amp;index=31&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 06:27:39 GMT</pubDate>
    <dc:creator>Padycosmos</dc:creator>
    <dc:date>2024-04-12T06:27:39Z</dc:date>
    <item>
      <title>Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121741#M1057065</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a calculated field that is based on what I select from Field Parameters.&lt;BR /&gt;&lt;BR /&gt;I created a field parameter that contains&lt;EM&gt;&lt;STRONG&gt; Column A (all numbers)&lt;/STRONG&gt; &lt;/EM&gt;and &lt;EM&gt;&lt;STRONG&gt;Column B&amp;nbsp;(all numbers).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then I tried creating a new calculated column that should be divided by the values from Column A or B, depending on the user selection. I tried it by using DAX and Power Query,&amp;nbsp;&lt;SPAN&gt;but I can't seem to get it to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i go about doing this? Any help will be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 14:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121741#M1057065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-09T14:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121800#M1057077</link>
      <description>&lt;P&gt;What you're looking for is probably using a measure instead of calculated columns. Calculated columns get created at refresh time. I've never tried creating calc columns based on field parameters but no wonder if you can't&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 14:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121800#M1057077</guid>
      <dc:creator>YukiK</dc:creator>
      <dc:date>2023-03-09T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121826#M1057085</link>
      <description>&lt;P&gt;Hope this helps:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 14:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3121826#M1057085</guid>
      <dc:creator>Padycosmos</dc:creator>
      <dc:date>2023-03-09T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3129916#M1059134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1. below is my test table&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. create a field parameter&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. create a measure with below dax formula&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR tmp =
    SELECTCOLUMNS ( Parameter, "SelectColumn", [Parameter] )
VAR _str =
    CONCATENATEX ( tmp, [SelectColumn] )
VAR _val =
    SWITCH (
        _str,
        "Column1", SUMX ( SELECTCOLUMNS ( 'Table', "Column1", [Column1] ), [Column1] ),
        "Column2", SUMX ( SELECTCOLUMNS ( 'Table', "Column2", [Column2] ), [Column2] )
    )
VAR _val1 = 100
RETURN
    DIVIDE ( _val, _val1 )
&lt;/LI-CODE&gt;
&lt;P&gt;4. add a table visual and a card visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 06:15:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3129916#M1059134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T06:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3832050#M1237526</link>
      <description>&lt;UL&gt;&lt;LI&gt;I have a similar situation where I have four columns that are all text columns. I have a field parameter slicer where I will need to select multiple parameters. If possible, In addition to returning the values in those 4 columns in a table visual, I am hoping to create an additional column that will concatenate the values for each row with the pipe delimiter ("|". Using the example above, column 3 would be returned 10|15 if both column 1 and 2 were selected in the parameter selection.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 11 Apr 2024 22:40:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3832050#M1237526</guid>
      <dc:creator>Neiners</dc:creator>
      <dc:date>2024-04-11T22:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3832733#M1237656</link>
      <description>&lt;P&gt;Hope the latter part of this video helps(from the 8 minute mark onwards) :&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=7mlYt6x-XCo&amp;amp;list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&amp;amp;index=31" target="_blank"&gt;https://www.youtube.com/watch?v=7mlYt6x-XCo&amp;amp;list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&amp;amp;index=31&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 06:27:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3832733#M1237656</guid>
      <dc:creator>Padycosmos</dc:creator>
      <dc:date>2024-04-12T06:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Calculated Fields based on Field Parameter selected</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3834273#M1237924</link>
      <description>&lt;P&gt;I think I am almost there. The 4 columns I have are "computer name", "property number", "mac address", and "service tag". I am trying to build a unique key so if only the computer name is selected on the slicer, then it will return the computername value in the table. If they select only the property number in the slicer, it will only return the property number value in the table. If they select computer name and property number, it will bring back the computernamevalue|propertynamevalue in the table. If they select 3 slicer values, it will bring back all 3 of those values in the table. Every row has a computer name but the rows might not have any of the remainder columns. I have this measure working in a card to show the unique key format but I can't get it to work in the table where I need to bring in the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uniquekey =CONCATENATEX(VALUES(ASSETSLICER[FIELD]),ASSETSLICER[FIELD], "|")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ASSETSLICER[Field] is a calculated column that I created in the slicer table.&lt;/P&gt;&lt;P&gt;Field=AssetSlicer[AssetSlicer]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That measure brings back "computername" or "computername|propertynumber", etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Calculated-Fields-based-on-Field-Parameter-selected/m-p/3834273#M1237924</guid>
      <dc:creator>Neiners</dc:creator>
      <dc:date>2024-04-12T14:19:24Z</dc:date>
    </item>
  </channel>
</rss>

