<?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: Showing the Max of a value across an entire dataset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248993#M54064</link>
    <description>&lt;P&gt;"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 2 = 
VAR _B =
    SUMMARIZE (
        'CrewPlanCondensed',
        'CrewPlanCondensed'[Location],
        'CrewPlanCondensed'[Craft],
        "M", MAX ( 'CrewPlanCondensed'[Count] )
    )
RETURN
    SELECTCOLUMNS (
        FILTER ( NATURALLEFTOUTERJOIN ( _B, CrewPlanCondensed), [M] = [COUNT] ),
        "Site", [Location],
        "Craft", [CRAFT],
        "Date", [Date],
        "Count", [Count]
    )&lt;/LI-CODE&gt;&lt;P&gt;That is what I have, I feel I have mucked up something there.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 05:47:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-21T05:47:43Z</dc:date>
    <item>
      <title>Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246725#M53949</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a dataset that I bring into PowerBI which lists&amp;nbsp;&lt;/P&gt;&lt;P&gt;SITE&lt;/P&gt;&lt;P&gt;CRAFT&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the data goes out to 2025.&amp;nbsp; Each week there is a list of 15 crafts for Sydney and for Vancouver and the count per craft... per the image below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;SITE&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; CRAFT&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; DATE&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; COUNT&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sydney&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; Animation&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 21/03/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 29&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Vancouver&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; Animation&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 21/03/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 15&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sydney&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; Animation&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 28/03/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 37&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Vancouver&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; Animation&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 28/03/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 9&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sydney&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; FX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 20/06/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 28&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Vancouver&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; FX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 20/06/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 12&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sydney&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; FX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 11/07/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 19&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Vancouver&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; FX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 11/07/2022&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; 22&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is show the max per craft and the week that occurs.&lt;/P&gt;&lt;P&gt;So there would be two lines for each craft showing the name of the craft, the location, the week and that weeks count as it is the max across the entire data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example the output would look like;&lt;/P&gt;&lt;TABLE border="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SITE&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; CRAFT&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; DATE&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; COUNT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sydney&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Animation&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 28/03/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 37&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vancouver&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Animation&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 21/03/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sydney&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; FX&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 20/06/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vancouver&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; FX&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11/07/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So on and so forth.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to build a measure that was Calculate(SUM(CrewPlanCondensed[Count])) but then not sure how to use that measure in a table to display the other data (basically I made a mess of it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would love some guidance on how to achieve this.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 05:54:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246725#M53949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T05:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246748#M53953</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you post sample data as text and expected output?&lt;BR /&gt;Not enough information to go on;&lt;BR /&gt;&lt;BR /&gt;please see this post regarding How to Get Your Question Answered Quickly:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;The most important parts are:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;1. Sample data as &lt;STRONG&gt;text&lt;/STRONG&gt;, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;BR /&gt;4. Relation between your tables&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 05:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246748#M53953</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-20T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246760#M53954</link>
      <description>&lt;P&gt;Edited, thanks&lt;/P&gt;&lt;P&gt;I don't know why the table columns are compressed.&amp;nbsp; It keeps saying it is correcting HTML errors and then saving.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fudged the data and put spaces in the table, it should be clear as to what I am trying to achieve.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 05:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246760#M53954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T05:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246940#M53962</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;Try this measure for MAX Count:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Max Count = 
VAR _A =
    CALCULATE (
        MAX ( 'Table'[COUNT] ),
        ALLEXCEPT ( 'Table', 'Table'[SITE], 'Table'[CRAFT] )
    )
RETURN
    IF ( MAX ( 'Table'[COUNT] ) = _A, _A, BLANK () )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add SITE,CRAFT,and DATE column to the table visaul and then add this measure.&lt;BR /&gt;&lt;STRONG&gt;The Output:&lt;/STRONG&gt;&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;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 07:18:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2246940#M53962</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-20T07:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248494#M54031</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I did that as outlined above, I have site, Craft, Date and the measure in the 'Values' for the table visualisation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What did you do for the Values in the date field.&amp;nbsp; I can't seem to get the visualisation setup just to show 2 lines per craft output properly.&lt;/P&gt;&lt;P&gt;Either I am repeating the date by setting earliest or repeated dates by putting don't summarise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248494#M54031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248530#M54037</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;Download this file:&amp;nbsp;&lt;A href="https://gofile.io/d/MWXc55" target="_blank"&gt;https://gofile.io/d/MWXc55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:56:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248530#M54037</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-20T21:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248593#M54042</link>
      <description>&lt;P&gt;Thanks for that, exactly as it should be but for me it doesn't do that.&amp;nbsp; Maybe it is the way the date field is created.&amp;nbsp; The underlying source is a huge messy spreadsheet that gets unpivoted to form the date column.&lt;/P&gt;&lt;P&gt;The value is Date and shows as Date in the table but I am just not sure why in my visualisation it is not limiting to only show the max for the crafts.&amp;nbsp; It shows the correct total, it is just repeated for every date instance that is listed for the crafts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep messing with it and see how far it goes before I break it fundatmentally.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248593#M54042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T22:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248604#M54043</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share your PBIX file with me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 23:14:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248604#M54043</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-20T23:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248606#M54044</link>
      <description>&lt;P&gt;Sorry I cannot, the table has current production information in it that has about 5 NDA slapped over the top of it.&lt;/P&gt;&lt;P&gt;If I modify it then I might be eroding the reason why it isn't working also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of those instances where I think I am stuck to be honest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep looking at my data and see if something jumps out.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 23:20:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248606#M54044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T23:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248944#M54054</link>
      <description>&lt;P&gt;so I know this isn't correct but this worked so much as to show the maximum per craft.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max Craft = CALCULATE (
    MAX ( CrewPlanCondensed[Count] ),
    ALLEXCEPT ( CrewPlanCondensed, CrewPlanCondensed[Craft],CrewPlanCondensed[Location]))&lt;/LI-CODE&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;It doesn't limit it to the date.&amp;nbsp; So for Animation - Sydney it shows 62 which is the max, but there is a line in the output for every Monday in the data for Sydney Animation,&amp;nbsp;&lt;BR /&gt;Vancouver it shows the 81, but again for Animation there is a long list of 81 as it is showing a line for every Monday in the spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 04:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248944#M54054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-21T04:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248985#M54061</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;Try this code to add a new &lt;STRONG&gt;table&amp;nbsp;&lt;/STRONG&gt;then use the new table:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Table 2 = 
VAR _B =
    SUMMARIZE (
        'Table',
        'Table'[SITE],
        'Table'[CRAFT],
        "M", MAX ( 'Table'[COUNT] )
    )
RETURN
    SELECTCOLUMNS (
        FILTER ( NATURALLEFTOUTERJOIN ( _B, 'Table' ), [M] = [COUNT] ),
        "Site", [SITE],
        "Craft", [CRAFT],
        "Date", [DATE],
        "Count", [COUNT]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 05:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248985#M54061</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-21T05:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248993#M54064</link>
      <description>&lt;P&gt;"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 2 = 
VAR _B =
    SUMMARIZE (
        'CrewPlanCondensed',
        'CrewPlanCondensed'[Location],
        'CrewPlanCondensed'[Craft],
        "M", MAX ( 'CrewPlanCondensed'[Count] )
    )
RETURN
    SELECTCOLUMNS (
        FILTER ( NATURALLEFTOUTERJOIN ( _B, CrewPlanCondensed), [M] = [COUNT] ),
        "Site", [Location],
        "Craft", [CRAFT],
        "Date", [Date],
        "Count", [Count]
    )&lt;/LI-CODE&gt;&lt;P&gt;That is what I have, I feel I have mucked up something there.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 05:47:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2248993#M54064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-21T05:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2249004#M54065</link>
      <description>&lt;P&gt;Date in the main table is a result of this in the query&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    #"Changed Type1" = Table.TransformColumnTypes(#"Unpivoted Columns",{{"Attribute", type date}, {"Value", Int64.Type}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type1",{{"Attribute", "Date"}, {"Value", "Count"}}),&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Could that be a factor in my headache here&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>Tue, 21 Dec 2021 05:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2249004#M54065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-21T05:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2249033#M54067</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use that code to add a new table:&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;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 06:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2249033#M54067</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-21T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2250728#M54176</link>
      <description>&lt;P&gt;I have added a new table per the script above which comes back with just over 5000 lines.&lt;/P&gt;&lt;P&gt;I built a table visualisation and followed the steps above by creating the measure and binding it to the new table then used the Count value from the measure in the visualisation and it still comes back with rows and rows of extra information.&lt;/P&gt;&lt;P&gt;Is that what I should have done?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 21:40:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2250728#M54176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-21T21:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2251125#M54198</link>
      <description>&lt;P&gt;oh I can see what it is doing.&amp;nbsp; It is not showing the first week we hit the max.&amp;nbsp; It is showing a line for each week we are at the maximum number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example in Sydney we hit the max for CharFX of 36 on the 25/04/22.&amp;nbsp; There is a line for each week now we are at 36 and then it stops.&amp;nbsp; So there are weekly lines til 19/09/22 then nothing more as the crew number drops.&lt;/P&gt;&lt;P&gt;Ideally this would just show the first week we hit the max number, not all the weeks we are at that number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 04:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2251125#M54198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-22T04:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2252977#M54333</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;I watched your conversation with &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;You are trying to get the maximum number of dates for each craft. The result contains the site, count and the name of the craft for this maximum date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Measure =
CALCULATE(
    MAX( 'Table'[DATE] ),
    'Table'[COUNT]
        = MAX( 'Table'[COUNT] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;You need to create a measure like the one above and put three fact fields in the table visual, [&lt;SPAN&gt;SITE] , [CRAFT] , [COUNT], like the following&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then, the most import thing, set the [COUNT] field as Maximum&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Last , put the measure in the table visual. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Pbix in the end you can refer.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 03:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2252977#M54333</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2021-12-23T03:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2264511#M54824</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Thank you this works as expected, except for the following;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It shows the last date in the range when we are at the maximim.&lt;/P&gt;&lt;P&gt;i.e. for Animation in Sydney we hit 75 in 24/01/22, then we drop off again and then at 72 on the 02/05/22 til the 30/05/22.&amp;nbsp; The output for animation in Sydney is showing 30/05/22 as the max crew week were I would need it to be the 24/01/22 as that is when we first hit the maximum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this easy to sort out?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 01:36:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2264511#M54824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-04T01:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Max of a value across an entire dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2264561#M54825</link>
      <description>&lt;P&gt;Duh.. I changed the Max to Min?!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 01:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-the-Max-of-a-value-across-an-entire-dataset/m-p/2264561#M54825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-04T01:48:10Z</dc:date>
    </item>
  </channel>
</rss>

