<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411983#M175223</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please consider &lt;STRONG&gt;&lt;EM&gt;Accepting my original response to your query as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2025 08:19:13 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2025-02-15T08:19:13Z</dc:date>
    <item>
      <title>Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411926#M175215</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;My intention is to produce the total sales of each day in each row. But here I'm only getting the values of the respective rows in the column. What is the issue with the above code&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 07:02:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411926#M175215</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-02-15T07:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411951#M175218</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you need &lt;STRONG&gt;MAX()&lt;/STRONG&gt; function, i.e., you can just use the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR Maxxx = Sales[Order Date]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also in the &lt;STRONG&gt;FILTER()&lt;/STRONG&gt;, use the entire table instead and not just the &lt;STRONG&gt;Sales[Order Date]&lt;/STRONG&gt; column and &lt;U&gt;no need to use &lt;STRONG&gt;ALL()&lt;/STRONG&gt; function&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try doing this small change and see if you are getting the desired results or, not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one of the example DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Col = 
VAR Maxxx = financials[Date]
VAR Total = CALCULATE(
    SUM(financials[ Sales]),
    FILTER(
        financials,
        financials[Date] = Maxxx
    )
)
RETURN
Total&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also attaching a sample report for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Proud to be a SuperUser&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 07:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411951#M175218</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-15T07:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411960#M175219</link>
      <description>&lt;P&gt;&lt;img /&gt;As you can see, the result is incorrect. In the first row the the value should have been 3578.28 because that is the only sales on that particular date.&lt;BR /&gt;Also Why couldn't i use a column filter instead of table filter before.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 07:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411960#M175219</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-02-15T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411963#M175220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="1:1-1:146"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="1:1-1:146"&gt;I'm questioning the sales figure of 3578.28 for that date. Since that's the only sale listed, could you double-check by filtering the Order Date?&lt;/P&gt;
&lt;P data-sourcepos="1:1-1:146"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="3:1-3:76"&gt;If possible, sharing a PBIX file with anonymized data would be very helpful.&lt;/P&gt;
&lt;P data-sourcepos="3:1-3:76"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="5:1-5:333"&gt;My concern stems from how the &lt;CODE&gt;FILTER()&lt;/CODE&gt; function works. It creates a virtual table. Using just the Order Date column doesn't inherently link to sales.&lt;/P&gt;
&lt;P data-sourcepos="5:1-5:333"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="5:1-5:333"&gt;We need to create that filtered virtual table and then sum the sales within it. That's why the claim of 3578.28 being the &lt;EM&gt;only&lt;/EM&gt; sale on that date seemed potentially inaccurate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Udit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 07:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411963#M175220</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-15T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411979#M175221</link>
      <description>&lt;P&gt;Yes, what you said was right. That was not the only sales on that day. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 08:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411979#M175221</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-02-15T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411983#M175223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please consider &lt;STRONG&gt;&lt;EM&gt;Accepting my original response to your query as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 08:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column/m-p/4411983#M175223</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-15T08:19:13Z</dc:date>
    </item>
  </channel>
</rss>

