<?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: Calculated Column with User_input in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-Column-with-User-input/m-p/3567460#M45646</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/654071"&gt;@Deepansh_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank for sharing your insight of this scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 02:26:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-05T02:26:13Z</dc:date>
    <item>
      <title>Calculated Column with User_input</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-Column-with-User-input/m-p/3564903#M45604</link>
      <description>&lt;P&gt;Power bi Solution-&lt;/P&gt;&lt;P&gt;Calculated Columns with Dynamic/User-input Selections-&lt;/P&gt;&lt;P&gt;Note – this solution might not applicable to all places where a dynamic/user-input is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Statement—It is a common knowledge that we create Calculated measures and user-input can be used in it .&lt;/P&gt;&lt;P&gt;However if you want to create a calculated column and change the values of that column wrt to user- input or filter selection by users, Then column can’t work like this.&lt;/P&gt;&lt;P&gt;In short a calculated column can’t work on selected values().&lt;/P&gt;&lt;P&gt;Comment- Some might say that what is the need you can create this is calculated measure as well , but keep in mind that measure will only come in the values and if you put that in columns the whole view of the report will change.&lt;/P&gt;&lt;P&gt;Solution-&lt;/P&gt;&lt;P&gt;A work around can be applied to this situation.&lt;/P&gt;&lt;P&gt;Example Scenario –&lt;/P&gt;&lt;P&gt;User selection on View type &amp;nbsp;– Sap View/ Treasury view&lt;/P&gt;&lt;P&gt;Calculated Column = if ( selected value(View type) = “Sap View” , “USD”, else if (selected value = treasure view , “local currency”)&lt;/P&gt;&lt;P&gt;In above scenario is it not possible to create a column.&lt;/P&gt;&lt;P&gt;Follow the below steps –&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create 2 calculated columns –&lt;OL&gt;&lt;LI&gt;Quote rate for sap = “USD”&lt;/LI&gt;&lt;LI&gt;Quote rate for treasury = “LC”&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Create a filed parameter for Quote rate include the above 2 fields&lt;OL&gt;&lt;LI&gt;Change the values of Quote rate column in all row put “Quote Rate” – this will act as the name of column in your matrix , as in field parameter the name of the column change once you change the value , so we are making all the column names as same.&lt;/LI&gt;&lt;LI&gt;Add one more column in the field parameter table – value in this column must be same as the selection you want .&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Meaning View type has 2 selection values Sap view and treasury view and with selection of sap view you need value of quote rate for sap in your field parameter and so on ,&lt;/P&gt;&lt;P&gt;Provide these selection values in the newly added column of field parameter – Sap View/ Treasury view&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Now you have a field parameter which can act as a field and this will change its value with change in the selection&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Only Challenge remains is how to connect this fields parameter with your original selection for View type&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add slicer for both view type and base currency , hide the base currency slicer&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;As you know we have added an extra column in field parameter use this extra column to join with your previous selection of view type and join bi-directional, if already not , make view type as a separate table and create Slicer on it .&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You functionality is achieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download the PBIX from &lt;A href="https://1drv.ms/u/s!AmqBCA1XthLLgk8kRsAlfW5hBTCL?e=5y6gNu" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 15:18:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculated-Column-with-User-input/m-p/3564903#M45604</guid>
      <dc:creator>Deepansh_</dc:creator>
      <dc:date>2023-12-03T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column with User_input</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-Column-with-User-input/m-p/3567460#M45646</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/654071"&gt;@Deepansh_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank for sharing your insight of this scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 02:26:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculated-Column-with-User-input/m-p/3567460#M45646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-05T02:26:13Z</dc:date>
    </item>
  </channel>
</rss>

