<?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: DAX formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557147#M136976</link>
    <description>&lt;P&gt;Somehow still it is giving me hard time...se below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 18:58:46 GMT</pubDate>
    <dc:creator>Thunders</dc:creator>
    <dc:date>2023-11-28T18:58:46Z</dc:date>
    <item>
      <title>DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556707#M136940</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;I have following sititation:&lt;/P&gt;&lt;P&gt;I have 2 tables, I need to create 3rd table.&lt;/P&gt;&lt;P&gt;Using DAX summarize function I get product unique values (see required Output), but I'm strugling to bring quotas, sales and calclate attainments. Example below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated!&lt;/P&gt;&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556707#M136940</guid>
      <dc:creator>Thunders</dc:creator>
      <dc:date>2023-11-28T14:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556843#M136955</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653011" data-lia-user-login="Thunders" class="lia-mention lia-mention-user"&gt;Thunders&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below code&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 3 = 
ADDCOLUMNS(
      SUMMARIZE(
        quotas,
        quotas[product]
      ),
      "r",CALCULATE(sum(quotas[quotas]))
,"sales",CALCULATE(SUM(sales[sales])),
"attainments",CALCULATE(SUM(sales[sales]))/CALCULATE(sum(quotas[quotas])))&lt;/LI-CODE&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;</description>
      <pubDate>Tue, 28 Nov 2023 15:51:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556843#M136955</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-11-28T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556922#M136963</link>
      <description>&lt;P&gt;Thank you Dangar,&lt;/P&gt;&lt;P&gt;Just one little issue. The sales are the same for all products even thou I established relationship between tables.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:35:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556922#M136963</guid>
      <dc:creator>Thunders</dc:creator>
      <dc:date>2023-11-28T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556947#M136966</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653011" data-lia-user-login="Thunders" class="lia-mention lia-mention-user"&gt;Thunders&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;use relation ship like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:55:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556947#M136966</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-11-28T16:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556975#M136967</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Since I can't established relationship for products between Quotas and Sales table I created new table with unique product values. Works well for Quotas/Sales, but not for table 3 (no idea why)&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>Tue, 28 Nov 2023 17:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3556975#M136967</guid>
      <dc:creator>Thunders</dc:creator>
      <dc:date>2023-11-28T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557071#M136973</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653011" data-lia-user-login="Thunders" class="lia-mention lia-mention-user"&gt;Thunders&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 3 = 
var a = CALCULATE(sum(quotas[quotas]))
var b = CALCULATE(SUM(sales[sales]),CROSSFILTER(sales[product],product_type[product],4))
return
ADDCOLUMNS(
      SUMMARIZE(
        quotas,
        quotas[product]
      ),
      "quotas",a
,"sales",b,
"attainments",b/a
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Nov 2023 18:02:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557071#M136973</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-11-28T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557147#M136976</link>
      <description>&lt;P&gt;Somehow still it is giving me hard time...se below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 18:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557147#M136976</guid>
      <dc:creator>Thunders</dc:creator>
      <dc:date>2023-11-28T18:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557838#M137009</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653011" data-lia-user-login="Thunders" class="lia-mention lia-mention-user"&gt;Thunders&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to:&lt;/P&gt;
&lt;P&gt;1) add a calculated product table like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Product = VALUES(sales[Product])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) relate product[product] with sales[product] and quotas[product]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) plot a table visual with&amp;nbsp;product[product] and three measures like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@sales = SUM(sales[Sales])
@Quotas = SUM(quotas[Quotas])
Attainment% = DIVIDE([@sales], [@Quotas]) &lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;it worked like:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;</description>
      <pubDate>Wed, 29 Nov 2023 04:04:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3557838#M137009</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-29T04:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3558979#M137113</link>
      <description>&lt;P&gt;Works perfect! Thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 13:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/3558979#M137113</guid>
      <dc:creator>Thunders</dc:creator>
      <dc:date>2023-11-29T13:43:53Z</dc:date>
    </item>
  </channel>
</rss>

