<?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: How to create a measure that shows top 1 category and counts its value by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385546#M61776</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365527" data-lia-user-login="maneschr2022" class="lia-mention lia-mention-user"&gt;maneschr2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you have a date table connected to your table through date column? If so does the date table have Moth-Year column?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 08:46:54 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-03-10T08:46:54Z</dc:date>
    <item>
      <title>How to create a measure that shows top 1 category and counts its value by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385390#M61772</link>
      <description>&lt;P&gt;Hi I`m pretty new with Power BI.&lt;/P&gt;&lt;P&gt;I just want to be able to create a measure that will let me show a top 1 Event and the total number of tickets sold by the month for only this top1 Event by month,&lt;/P&gt;&lt;P&gt;So there is the column called Events that shows events names and column called tickets shows the ticket ids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:14:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385390#M61772</guid>
      <dc:creator>maneschr2022</dc:creator>
      <dc:date>2022-03-10T08:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that shows top 1 category and counts its value by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385546#M61776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365527" data-lia-user-login="maneschr2022" class="lia-mention lia-mention-user"&gt;maneschr2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you have a date table connected to your table through date column? If so does the date table have Moth-Year column?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385546#M61776</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that shows top 1 category and counts its value by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385567#M61778</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;
&lt;LI-CODE lang="markup"&gt;Tickets count top one: =
IF (
    HASONEVALUE ( 'Calendar'[Month Name] ),
    CALCULATE (
        COUNTROWS ( VALUES ( Data[Ticket] ) ),
        KEEPFILTERS (
            TOPN (
                1,
                ALL ( Event[Event] ),
                CALCULATE ( COUNTROWS ( VALUES ( Data[Ticket] ) ) ), DESC
            )
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:51:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2385567#M61778</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-10T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that shows top 1 category and counts its value by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2390694#M62168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thanks a lot!! that`s what I wanted to show. I don`t know if you can help me also with a measure that is very similar but with some differences.&lt;/P&gt;&lt;P&gt;I would like to show now the top 1 event type by month and year counting the EventID. (for example in March 2021 the top one event is Rock concert with 3 events and so on). In this case, some rows have repeated eventID so I`m trying to use the distinct count. Also, there are some events that start in a month but end next month, so want to use the start date column as a reference so the events are not counted twice for different months.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 21:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2390694#M62168</guid>
      <dc:creator>maneschr2022</dc:creator>
      <dc:date>2022-03-13T21:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that shows top 1 category and counts its value by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2390696#M62169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;yes I have connected a table with year, month, date for that. I got a recent post, I don`t know if you can help me with that one&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 21:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-shows-top-1-category-and-counts-its/m-p/2390696#M62169</guid>
      <dc:creator>maneschr2022</dc:creator>
      <dc:date>2022-03-13T21:12:56Z</dc:date>
    </item>
  </channel>
</rss>

