<?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: undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416783#M63842</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&amp;nbsp;: as a follow up, if i want to put more conditions, how do i do that ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above works, if there is only condition to filter. But if i want to filter more than one column, how will do it?&lt;/P&gt;&lt;P&gt;Appreciate your help !!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 05:45:15 GMT</pubDate>
    <dc:creator>Sai_Alkesh</dc:creator>
    <dc:date>2022-03-25T05:45:15Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2406912#M63242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Need help with the following:&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;Table &lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Identifier field LCurrency FCurrency FX Rate Type&amp;nbsp; &amp;nbsp; &amp;nbsp;Period&lt;BR /&gt;yyyymm&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EUr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GBp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.8545&amp;nbsp; &amp;nbsp; AVRS&amp;nbsp; &amp;nbsp;20214&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GBp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1684&amp;nbsp; &amp;nbsp; &amp;nbsp;AVRS&amp;nbsp; &amp;nbsp;20214&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JPy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EUr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.88018&amp;nbsp; &amp;nbsp;RNMJ&amp;nbsp; 20228&lt;BR /&gt;Table &lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Identifier Item&amp;nbsp; &amp;nbsp; &amp;nbsp; Currency&amp;nbsp; &amp;nbsp; Sales&amp;nbsp; &amp;nbsp; Period&amp;nbsp; &amp;nbsp;Calculated Column&lt;BR /&gt;yyyymm 123456&amp;nbsp; &amp;nbsp;USd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10000&amp;nbsp; &amp;nbsp; 20214&amp;nbsp; &amp;nbsp; 8558.712&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 234567&amp;nbsp; &amp;nbsp;USd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8000&amp;nbsp; &amp;nbsp; &amp;nbsp; 20213&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;6846.97&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3456789 EUr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; 20216&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;2340.55&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;i have the following DAX for the calculated Column in Table Sales&lt;/P&gt;&lt;P&gt;'Sales'[Sales] *&lt;BR /&gt;DIVIDE(1,&lt;BR /&gt;CALCULATE(&lt;BR /&gt;FIRSTNONBLANK('Currency'[FXRate], TRUE() ),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Currency',&lt;BR /&gt;'Currency'[LCurrency]= 'Sales'[Currency] &amp;amp;&amp;amp;&lt;BR /&gt;'Currency'[FCurrency]= "GBP" &amp;amp;&amp;amp;&lt;BR /&gt;'Currency'[TypeT]= "AVRS" &amp;amp;&amp;amp;&lt;BR /&gt;'Currency'[Period]= "20214")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;The issue is, i get the calculated column values, where the period is 20214, but not for other rows, where the period is not '20214'. Values in Red font in the calculated column are not getting calculated in PBI.&lt;BR /&gt;&lt;BR /&gt;How can i get the values for all rows.&lt;BR /&gt;&lt;BR /&gt;Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2406912#M63242</guid>
      <dc:creator>Sai_Alkesh</dc:creator>
      <dc:date>2022-03-21T14:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414151#M63696</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="132222" data-lia-user-login="Sai_Alkesh" class="lia-mention lia-mention-user"&gt;Sai_Alkesh&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;Here are some questions to be confirmed:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;The issue is, i get the calculated column values, where the period is 20214, but not for other rows, where the period is not '20214'. Values in Red font in the calculated column are not getting calculated in PBI."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what are the correct values&amp;nbsp;for other rows? Currency &amp;amp; Period of row1/row2/row3 are different, will they affect calculation results? If yes, for row2/3, how to calculate ( Math formula)?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in .0001pt 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px; margin: 7.5pt 0in .0001pt 0in;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px; margin: 7.5pt 0in .0001pt 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414151#M63696</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-03-24T06:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414168#M63697</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48264" data-lia-user-login="Tang" class="lia-mention lia-mention-user"&gt;Tang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out.&lt;/P&gt;&lt;P&gt;The formula is Sales * DIVIDE(1, FX Rate (from currency table), where Sales.Currency=Currency.LCurrency&lt;/P&gt;&lt;P&gt;For row 2, the example will be 8000 * 1/1.1684 = 6846.97 and&amp;nbsp;&lt;/P&gt;&lt;P&gt;For row 3, the exmaple will be 2000 * 1/0.8545 = 2340.55&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414168#M63697</guid>
      <dc:creator>Sai_Alkesh</dc:creator>
      <dc:date>2022-03-24T06:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414282#M63709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="132222" data-lia-user-login="Sai_Alkesh" class="lia-mention lia-mention-user"&gt;Sai_Alkesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this calculated column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ColumnTest = 
VAR _currency =
    CALCULATE (
        MAX ( 'Currency'[FXRate] ),
        FILTER (
            ALL ( 'Currency' ),
            'Currency'[LCurrency] = EARLIER ( 'Sales'[Currency] )
        )
    )
RETURN
    'Sales'[Sales] * DIVIDE ( 1, _currency )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 07:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2414282#M63709</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-03-24T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416781#M63841</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&amp;nbsp;: Thank you so much. This works !!!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 05:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416781#M63841</guid>
      <dc:creator>Sai_Alkesh</dc:creator>
      <dc:date>2022-03-25T05:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416783#M63842</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&amp;nbsp;: as a follow up, if i want to put more conditions, how do i do that ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above works, if there is only condition to filter. But if i want to filter more than one column, how will do it?&lt;/P&gt;&lt;P&gt;Appreciate your help !!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 05:45:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416783#M63842</guid>
      <dc:creator>Sai_Alkesh</dc:creator>
      <dc:date>2022-03-25T05:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416975#M63849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="132222" data-lia-user-login="Sai_Alkesh" class="lia-mention lia-mention-user"&gt;Sai_Alkesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this scenario, you can modify the red part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;EARLIER:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/earlier-function-dax" target="_blank"&gt;EARLIER function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 06:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2416975#M63849</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-03-25T06:56:42Z</dc:date>
    </item>
  </channel>
</rss>

