<?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 count number of days selected from SLICER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783509#M37435</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , On you slicer column, try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _max = maxx(ALLSELECTED('Date'),'Date'[Date])&lt;BR /&gt;var _min = minx(ALLSELECTED('Date'),'Date'[Date])&lt;BR /&gt;return &lt;BR /&gt;datediff(_min,_max,day)+1&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 03:04:06 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-14T03:04:06Z</dc:date>
    <item>
      <title>How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783365#M37434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to count number of days regardless of checking that if data is in database or not. All I want is when user select date range from slicer either days or months or years. It should count the number of days including weekends and just display number of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Number of days = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Number of days = 3 * 7 = 21 days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I get count of days for which data exist in database. Whereas I want to count total number of days selected even if data is not present in database. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 01:45:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783365#M37434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T01:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783509#M37435</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , On you slicer column, try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _max = maxx(ALLSELECTED('Date'),'Date'[Date])&lt;BR /&gt;var _min = minx(ALLSELECTED('Date'),'Date'[Date])&lt;BR /&gt;return &lt;BR /&gt;datediff(_min,_max,day)+1&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 03:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783509#M37435</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-14T03:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783584#M37438</link>
      <description>&lt;P&gt;It's not working when I use the below selection I get Number of days 1 instead of 3 :&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;</description>
      <pubDate>Wed, 14 Apr 2021 03:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783584#M37438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T03:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783592#M37439</link>
      <description>&lt;P&gt;Because I don't have data in database for date 13/04/2021 and 14/04/2021. But I want to count number of days regardless of data in database.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 03:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783592#M37439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T03:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783598#M37441</link>
      <description>&lt;P&gt;Please see below screenshots :&lt;/P&gt;&lt;P&gt;Showing that it brings the max date from database instead of getting it from slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 03:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783598#M37441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T03:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783631#M37442</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , we do not have a way to know other parameters from the relative date slicer. So if dates are not present, I doubt of a way I know. &lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 04:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/1783631#M37442</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-14T04:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of days selected from SLICER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/2536742#M71320</link>
      <description>&lt;P&gt;Thanks! This solution worked for me. I had problems with the function "AVERAGEX(VALUES ....", so I replaced it with your suggestion and it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:18:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-number-of-days-selected-from-SLICER/m-p/2536742#M71320</guid>
      <dc:creator>angelarojasmora</dc:creator>
      <dc:date>2022-05-24T15:18:43Z</dc:date>
    </item>
  </channel>
</rss>

