<?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: help with a date colum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730054#M145340</link>
    <description>&lt;P&gt;Thats not excatly what i want now it gives me only 1 by every date i want it to count so for example:&lt;BR /&gt;&lt;BR /&gt;1-1-2024&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2-1-2024&amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;4-1-2024&amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;5-1-2024&amp;nbsp; &amp;nbsp;4&lt;BR /&gt;6-2-2024&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;7-2-2024&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&lt;BR /&gt;so in January the shop was 4 days open and in february the shop was 2days open&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 08:58:13 GMT</pubDate>
    <dc:creator>Krijgersss</dc:creator>
    <dc:date>2024-02-28T08:58:13Z</dc:date>
    <item>
      <title>help with a date colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3729974#M145332</link>
      <description>&lt;P&gt;Hello i need some help with a date Colum. i have a date colum that gives a date of a shop if its open. so if there is a date the shop will be open. how do i count the days in that colum that i know how many days each month the shop is open.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3729974#M145332</guid>
      <dc:creator>Krijgersss</dc:creator>
      <dc:date>2024-02-28T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: help with a date colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730008#M145335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650918" data-lia-user-login="Krijgersss" class="lia-mention lia-mention-user"&gt;Krijgersss&lt;/a&gt;&amp;nbsp; try something like this within a new measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;new_measure = DISTINCTCOUNTNOBLANK( your_table[Date_column] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:46:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730008#M145335</guid>
      <dc:creator>timalbers</dc:creator>
      <dc:date>2024-02-28T08:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: help with a date colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730054#M145340</link>
      <description>&lt;P&gt;Thats not excatly what i want now it gives me only 1 by every date i want it to count so for example:&lt;BR /&gt;&lt;BR /&gt;1-1-2024&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2-1-2024&amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;4-1-2024&amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;5-1-2024&amp;nbsp; &amp;nbsp;4&lt;BR /&gt;6-2-2024&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;7-2-2024&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&lt;BR /&gt;so in January the shop was 4 days open and in february the shop was 2days open&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730054#M145340</guid>
      <dc:creator>Krijgersss</dc:creator>
      <dc:date>2024-02-28T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: help with a date colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730801#M145393</link>
      <description>&lt;P&gt;I wonder, how you would like to display this data.&lt;BR /&gt;If you want to display it in a table visual, then just add another calculated column to your data that gives you the month and then you could use this field in your table visual combined with the measure I posted. Then you will have the exact number of days found for every month.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3730801#M145393</guid>
      <dc:creator>timalbers</dc:creator>
      <dc:date>2024-02-28T14:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: help with a date colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3732662#M145467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650918" data-lia-user-login="Krijgersss" class="lia-mention lia-mention-user"&gt;Krijgersss&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create calculated columns and write dax expressions:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
CALCULATE(COUNT('Table'[date]),
FILTER(ALL('Table'),
EARLIER('Table'[date]) &amp;gt;= EOMONTH('Table'[date],-1)+1 &amp;amp;&amp;amp; EARLIER('Table'[date]) &amp;lt;= EOMONTH('Table'[date],0) &amp;amp;&amp;amp; ' Table'[date] &amp;lt;= EARLIER('Table'[date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;The result obtained is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&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;</description>
      <pubDate>Thu, 29 Feb 2024 07:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-a-date-colum/m-p/3732662#M145467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-29T07:13:56Z</dc:date>
    </item>
  </channel>
</rss>

