<?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: Maximum sales of a of a specific month within a specific year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2528227#M70786</link>
    <description>&lt;P&gt;The function is no working. I tried with MAX, MAXX, and Calculate but getting red underline.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 05:10:13 GMT</pubDate>
    <dc:creator>Alex_Hasan</dc:creator>
    <dc:date>2022-05-20T05:10:13Z</dc:date>
    <item>
      <title>Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2527298#M70713</link>
      <description>&lt;P&gt;I have created a measre named&amp;nbsp;&lt;STRONG&gt;Total Sales.&lt;/STRONG&gt;&amp;nbsp;In the Dimdate table, there are Month, and Calender Year columns.&amp;nbsp;Now I want to write a measure, &lt;STRONG&gt;Maximum sales of January 2011.&amp;nbsp;&lt;/STRONG&gt;I tried to solve it many ways but nothing works as I cannot organize the algorithm to solve it. How to do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:45:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2527298#M70713</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-19T17:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2527337#M70719</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does your visual look like?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 18:09:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2527337#M70719</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-19T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2528227#M70786</link>
      <description>&lt;P&gt;The function is no working. I tried with MAX, MAXX, and Calculate but getting red underline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 05:10:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2528227#M70786</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T05:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2528320#M70789</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean what are you slicing by? What visual are you using? Table, matrix, chart or just a card visual? What columns are involved in that visual? What exactly is the code that you have used but recieved error?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 06:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2528320#M70789</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529368#M70861</link>
      <description>&lt;P&gt;Oh, okay. It's for card visual.&amp;nbsp; This is how I tried.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX sales JAN 2011 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DimDate[CalendarYear]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2011&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;DimDate[Month]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"January"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 May 2022 12:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529368#M70861</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T12:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529443#M70867</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Maximum sales of January 2011 =
MAXX (
    CALCULATETABLE ( Sales, DimTable[Month] = 1, DimTable[Year] = 2011 ),
    Sales[Sales]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 May 2022 12:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529443#M70867</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T12:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529550#M70874</link>
      <description>&lt;P&gt;Hi, I have a measure Total sales. So calculatetable woun't take a measure.&amp;nbsp;Could you please give me another solution that take a measure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529550#M70874</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T13:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529575#M70878</link>
      <description>&lt;P&gt;This is not the code I provided. Please check with the same code&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529575#M70878</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529582#M70879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the code with clarification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Maximum sales of January 2011 =
MAXX (
    CALCULATETABLE (
        SalesTableName,
        DimTable[Month] = "January",
        DimTable[CalendarYear] = 2011
    ),
    SalesTableName[SalesAmountColumnName]
)&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Maximum sales of January 2011 =
MAXX (
    CALCULATETABLE (
        SalesTableName,
        DimTable[Month] = "January",
        DimTable[CalendarYear] = 2011
    ),
    [Total Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529582#M70879</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T13:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529616#M70881</link>
      <description>&lt;P&gt;It's not showing correct value. And I repeat, I must use&lt;STRONG&gt; Total sales&lt;/STRONG&gt; &lt;U&gt;measure&lt;/U&gt; instead of sales table, not a single column from sales table.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529616#M70881</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T13:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529619#M70882</link>
      <description>&lt;P&gt;can share a screeshot?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:56:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529619#M70882</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529640#M70885</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the maximum sales of january 2011.&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;When I tried with your code, this is what I got.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529640#M70885</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529655#M70887</link>
      <description>&lt;P&gt;What is the definition&amp;nbsp;of maximum sales? By product, by customer, by date, by invoice number?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529655#M70887</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T14:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529666#M70889</link>
      <description>&lt;P&gt;By date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529666#M70889</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529707#M70894</link>
      <description>&lt;P&gt;This shalk give you the sales amount durinf Jan 2011 at the date that scored the highest sales&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Maximum sales of January 2011 =
MAXX (
    SUMMARIZE (
        CALCULATETABLE (
            SalesTableName,
            DimDate[Month] = "January",
            DimDate[CalendarYear] = 2011
        ),
        DimDate[Date],
        "@Amount", [Total Sales]
    ),
    [@Amount]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 May 2022 14:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529707#M70894</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-20T14:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529717#M70897</link>
      <description>&lt;P&gt;This is the link. you will find the excercise in context transition page&lt;BR /&gt;&lt;A href="https://1drv.ms/u/s!AtNgJBWI0wXOb5GOZf-anQJd3dc?e=6dgu3t" target="_blank"&gt;&amp;nbsp;https://1drv.ms/u/s!AtNgJBWI0wXOb5GOZf-anQJd3dc?e=6dgu3t&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:29:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529717#M70897</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T14:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529720#M70898</link>
      <description>&lt;P&gt;To be able to write the code you want one has to know the organization of your Sales table. Is every row a complete sale? If now, then which column identifies all the rows that belong to the same sale? You have to answer such question first to be able to write the desired formula.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529720#M70898</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-05-20T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529776#M70904</link>
      <description>&lt;P&gt;It worked ! Thank you. But I would like know why we used SUMMERIZE function? and why "@Amount" in that way? could you please elaborate, it seems a tough one?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529776#M70904</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-20T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum sales of a of a specific month within a specific year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529800#M70910</link>
      <description>&lt;P&gt;One of them will be the fastest:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Maximum sales of January 2011 =
MAXX (
    SUMMARIZE (
        CALCULATETABLE (
            SalesTableName,
            DimDate[Month] = "January",
            DimDate[CalendarYear] = 2011
        ),
        DimDate[Date]
    ),
    [Total Sales]
)

-- or

Maximum sales of January 2011 =
CALCULATE(
    MAXX (
        SUMMARIZE (
            SalesTableName,
            DimDate[Date]
        ),
        [Total Sales]
    ),
    DimDate[Month] = "January",
    DimDate[CalendarYear] = 2011
)

-- or 
Maximum sales of January 2011 =
CALCULATE(
    MAXX (
        // on condition that SalesTableName[Date]
        // is connected to your DimDate table
        // on Date.
        VALUES ( SalesTableName[Date] ),
        [Total Sales]
    ),
    DimDate[Month] = "January",
    DimDate[CalendarYear] = 2011
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By the way, SUMMARIZE should never be used for calculations, only for grouping, since this function has a bug that Microsoft have refused to fix. Alberto Ferrari has an article about it.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:09:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-sales-of-a-of-a-specific-month-within-a-specific-year/m-p/2529800#M70910</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-05-20T15:09:15Z</dc:date>
    </item>
  </channel>
</rss>

