<?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: Filter Visuals on multiple date columns in a table using single date  SELECTEDVALUE filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4766016#M182574</link>
    <description>&lt;P&gt;I resolved it by adding the same Measure (shown below) that I used for the card visual into a table visual alongside with other fields that I needed for my case list report and it worked! I just now need to hide that measure column from the table because it is showing a "1" in every row &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure_OpenAsOfSelectedDate = 

Calculate(
    DISTINCTCOUNT(AllSRs[ServiceReqID]),
    AND( 
        AllSRs[OpenDate]  &amp;lt;= SELECTEDVALUE(Dates[Date], TODAY()) , 
        or( 
            ISBLANK(AllSRs[CloseDate]),     
            AllSRs[CloseDate] &amp;gt; SELECTEDVALUE(Dates[Date], TODAY())
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 23:52:30 GMT</pubDate>
    <dc:creator>aghanchi</dc:creator>
    <dc:date>2025-07-16T23:52:30Z</dc:date>
    <item>
      <title>Filter Visuals on multiple date columns in a table using single date  SELECTEDVALUE filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765822#M182569</link>
      <description>&lt;P&gt;I work for a nonprofit where we have to report case counts among other things. One of the reports asks for cases that are in open state at a certain date. The fact table has an OpenDate and CloseDate column. Null or empty CloseDate indicates that the case is still open. I also have a Dates table that I use for other calculations. I have set relationship between the fact table and the Dates table based on the OpenDate and CloseDate columns to the Dates[Date] column, but none of them is active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add visuals like table and card that would show the number of cases that are open on a certain date. I can specify that date as a Page filter or Visual filter using the Dates[Date] column .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already tried solutions like adding a boolean column to the fact table that would return True/False based on a formula that uses the OpenDate, CloseDate and the SelectedValue(Dates[Date], Today()). But that is giving me erroneous results. I have read that Measures is the way to do it. I have created a measure that returns 1 and 0&amp;nbsp; (for True/False), But the edit time errors indicate that I have to use one of the aggregate functions because my fact table is not returning single value. Following is what I have done so far. This is a simplified version. I also have used USERELATIONSHIP() between the OpenDate/CloseDate columns and the SelectedValue(Dates[Date], Today()) function to no avail. Can you please help me how do I resolve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure_ISOpenAsOfSelectedDate = 
if(
    AND( 
        AllSRs[OpenDate] &amp;lt;= SELECTEDVALUE(Dates[Date], TODAY()) , 
        or( 
            ISBLANK(AllSRs[CloseDate]),     
            AllSRs[CloseDate] &amp;gt; SELECTEDVALUE(Dates[Date], TODAY())
        )
    )
    ,1
    ,0
)&lt;/LI-CODE&gt;&lt;P&gt;Error:&amp;nbsp;&lt;FONT color="#FF0000"&gt;A single value for column 'OpenDate' in table 'AllSRs' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 19:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765822#M182569</guid>
      <dc:creator>aghanchi</dc:creator>
      <dc:date>2025-07-16T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Visuals on multiple date columns in a table using single date  SELECTEDVALUE filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765839#M182570</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267056" data-lia-user-login="aghanchi" class="lia-mention lia-mention-user"&gt;aghanchi&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure_ISOpenAsOfSelectedDate = 
if(
    AND( 
        MAX( AllSRs[OpenDate] ) &amp;lt;= SELECTEDVALUE(Dates[Date], TODAY()) , 
        or( 
            ISBLANK(AllSRs[CloseDate]),     
            AllSRs[CloseDate] &amp;gt; SELECTEDVALUE(Dates[Date], TODAY())
        )
    )
    ,1
    ,0
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Jul 2025 19:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765839#M182570</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-07-16T19:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Visuals on multiple date columns in a table using single date  SELECTEDVALUE filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765869#M182571</link>
      <description>&lt;P&gt;Greg, thank you for your response!&lt;/P&gt;&lt;P&gt;Unfortunately, that didn't work. I had to apply the MAX function to other instances of OpenDate and CloseDate columns in the query to bypass the same error. In the end, when I applied tat measure as the visual filter, nothing happened. It did not return 1 or 0 either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, I was able to lookup the following measure that at least gets the totals right for the Card visual. I still want to resolve it for the table visual where I am listing the actual cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure_OpenAsOfSelectedDate = 

Calculate(
    DISTINCTCOUNT(AllSRs[ServiceReqID]),
    AND( 
        AllSRs[OpenDate]  &amp;lt;= SELECTEDVALUE(Dates[Date], TODAY()) , 
        or( 
            ISBLANK(AllSRs[CloseDate]),     
            AllSRs[CloseDate] &amp;gt; SELECTEDVALUE(Dates[Date], TODAY())
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 20:15:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4765869#M182571</guid>
      <dc:creator>aghanchi</dc:creator>
      <dc:date>2025-07-16T20:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Visuals on multiple date columns in a table using single date  SELECTEDVALUE filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4766016#M182574</link>
      <description>&lt;P&gt;I resolved it by adding the same Measure (shown below) that I used for the card visual into a table visual alongside with other fields that I needed for my case list report and it worked! I just now need to hide that measure column from the table because it is showing a "1" in every row &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure_OpenAsOfSelectedDate = 

Calculate(
    DISTINCTCOUNT(AllSRs[ServiceReqID]),
    AND( 
        AllSRs[OpenDate]  &amp;lt;= SELECTEDVALUE(Dates[Date], TODAY()) , 
        or( 
            ISBLANK(AllSRs[CloseDate]),     
            AllSRs[CloseDate] &amp;gt; SELECTEDVALUE(Dates[Date], TODAY())
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 23:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Visuals-on-multiple-date-columns-in-a-table-using-single/m-p/4766016#M182574</guid>
      <dc:creator>aghanchi</dc:creator>
      <dc:date>2025-07-16T23:52:30Z</dc:date>
    </item>
  </channel>
</rss>

