<?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: Nested IF's in DAX with text and parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982117#M12006</link>
    <description>&lt;P&gt;Thank you for the superfast reply!&amp;nbsp; Yes, the format with some tweaking worked and I learnt a lot on the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 13:18:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-19T13:18:34Z</dc:date>
    <item>
      <title>Nested IF's in DAX with text and parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/981879#M11994</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck and hope the community can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple problem.&amp;nbsp; A table contains:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fruit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value&lt;/P&gt;&lt;P&gt;Orange&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;Banana&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;Strawberries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a % parameter (so 0% to 100%) which is selected by the user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a new column with the logic of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Fruit = Orange then (Value * % parameter + 10) or;&lt;/P&gt;&lt;P&gt;If Fruit = Apple then (Value * % parameter + 5) or;&lt;/P&gt;&lt;P&gt;If Fruit = Banana then (Value * % parameter + 2)&lt;/P&gt;&lt;P&gt;otherwise return Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I relatively new to PowerBI so am struggling with nested IF searching for texts and returning a formula.&amp;nbsp; I've looked at many examples but currently haven't got it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All help welcome.&amp;nbsp; Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 11:02:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/981879#M11994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-19T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF's in DAX with text and parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/981952#M11997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this technique&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _parameter = DIVIDE(SELECTEDVALUE('Table'[Parameter]), 100)
var _fruit = SELECTEDVALUE('Table'[Fruit])
var _valueParameter = SELECTEDVALUE('Table'[Value])*_parameter 
RETURN
SWITCH(TRUE(),
_fruit = "Orange", (_valueParameter  + 10),
_fruit = "Apple", (_valueParameter  + 5),
_fruit = "Banana", (_valueParameter  + 2)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 11:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/981952#M11997</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-19T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF's in DAX with text and parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982117#M12006</link>
      <description>&lt;P&gt;Thank you for the superfast reply!&amp;nbsp; Yes, the format with some tweaking worked and I learnt a lot on the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982117#M12006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-19T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF's in DAX with text and parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982590#M12025</link>
      <description>&lt;P&gt;Actually, sorry still stuck.&amp;nbsp; When I use the following with a a whatif parameter, the correct values are returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Apple = ((620)*Parameter[Parameter Value])+((750)*(1-Parameter[Parameter Value]))&lt;BR /&gt;&lt;BR /&gt;However, if I wanted to simply subtract that result from another number , the results are incorrect.&amp;nbsp; So for example:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Apple&amp;nbsp; = 750 - ((620)*Parameter[Parameter Value])+((750)*(1-Parameter[Parameter Value]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Clearly I'm missing something so basic but has stumped me.&amp;nbsp; &amp;nbsp;Any suggestions again would be appreciated&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Many thanks.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982590#M12025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-19T17:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF's in DAX with text and parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982653#M12026</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry, I do not understand the issue&lt;/P&gt;
&lt;P&gt;also, please set&amp;nbsp;@ in message and choose my login in drop down list to notify me about reply&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 18:21:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-s-in-DAX-with-text-and-parameters/m-p/982653#M12026</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-19T18:21:21Z</dc:date>
    </item>
  </channel>
</rss>

