<?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 What formula to use in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057207#M46366</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have two tables below and i want to split my price into 4 new columns:&lt;/P&gt;&lt;P&gt;1. v low price&lt;/P&gt;&lt;P&gt;2. low price&lt;/P&gt;&lt;P&gt;3. Avg price&lt;/P&gt;&lt;P&gt;4. High price&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The price to be shown in each of these columns should be:&lt;BR /&gt;o Very Low:&amp;nbsp; if price &amp;lt; (average - $7.50) for that product, show the quantity, if not show "0"&lt;BR /&gt;o Low:&amp;nbsp; if price between (average - $7.50) and (average - $2.50) for that product,&amp;nbsp;show the quantity, if not show "0"&lt;BR /&gt;o Average:&amp;nbsp; If price between (average - $2.50) and (average + $2.50),&amp;nbsp;show the quantity, if not show "0"&lt;BR /&gt;o High: If price &amp;gt; (average + $2.50),&amp;nbsp;show the quantity, if not show "0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i calculate this? Please advise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Sep 2021 01:42:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-04T01:42:13Z</dc:date>
    <item>
      <title>What formula to use</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057207#M46366</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have two tables below and i want to split my price into 4 new columns:&lt;/P&gt;&lt;P&gt;1. v low price&lt;/P&gt;&lt;P&gt;2. low price&lt;/P&gt;&lt;P&gt;3. Avg price&lt;/P&gt;&lt;P&gt;4. High price&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The price to be shown in each of these columns should be:&lt;BR /&gt;o Very Low:&amp;nbsp; if price &amp;lt; (average - $7.50) for that product, show the quantity, if not show "0"&lt;BR /&gt;o Low:&amp;nbsp; if price between (average - $7.50) and (average - $2.50) for that product,&amp;nbsp;show the quantity, if not show "0"&lt;BR /&gt;o Average:&amp;nbsp; If price between (average - $2.50) and (average + $2.50),&amp;nbsp;show the quantity, if not show "0"&lt;BR /&gt;o High: If price &amp;gt; (average + $2.50),&amp;nbsp;show the quantity, if not show "0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i calculate this? Please advise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 01:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057207#M46366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-04T01:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: What formula to use</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057226#M46367</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;I think the first thing you need is a working average measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average Measure =
  VAR __Product = MAX('Table'[Product])
RETURN
  AVERAGEX(FILTER(ALL('Table'),[Product] = __Product),[price])&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 04 Sep 2021 03:14:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057226#M46367</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-04T03:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: What formula to use</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057327#M46373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please donwload this file, I added all those columns to your table.&lt;/P&gt;&lt;P&gt;Download Link :&amp;nbsp;&lt;A href="https://gofile.io/d/L3yBiZ" target="_blank"&gt;https://gofile.io/d/L3yBiZ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":victory_hand:"&gt;✌️&lt;/span&gt;&lt;/STRONG&gt;!!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 07:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2057327#M46373</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-04T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: What formula to use</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2058755#M46419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the soultion. I have another question, i want to create new measure name "Price 1" and "volume". The "Price 1", i want to it to grab all the data from price column and the "volume" measure i want to grab data from quantity column. what formula should i use? Please advise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 06:36:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2058755#M46419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-06T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: What formula to use</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2058945#M46424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not get your question very well.&lt;/P&gt;&lt;P&gt;Do you want to have separate tables for Price and Quantity? then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or do you want duplicate columns to indicate exact figures from Price and Quantity? if yes try these codes to add new columns:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Price 1 = 'Table'[price]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volume = 'Table'[quantity]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you need something else, share more details.&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;!!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Sep 2021 07:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-formula-to-use/m-p/2058945#M46424</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-06T07:29:43Z</dc:date>
    </item>
  </channel>
</rss>

