<?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 How to filter 2 columns in one table using one slicer? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1987534#M43929</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1 table contains 2 different date column and one amount column. I want to create a measure to calculate the sum of amount for both date column's date before selected date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see the example below:&lt;/P&gt;&lt;P&gt;For I want to sum up the amount for both date column less than the select datetime (using slicer created by calendar table to select date):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 14:12:04 GMT</pubDate>
    <dc:creator>winnieymh</dc:creator>
    <dc:date>2021-07-29T14:12:04Z</dc:date>
    <item>
      <title>How to filter 2 columns in one table using one slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1987534#M43929</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1 table contains 2 different date column and one amount column. I want to create a measure to calculate the sum of amount for both date column's date before selected date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see the example below:&lt;/P&gt;&lt;P&gt;For I want to sum up the amount for both date column less than the select datetime (using slicer created by calendar table to select date):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 14:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1987534#M43929</guid>
      <dc:creator>winnieymh</dc:creator>
      <dc:date>2021-07-29T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter 2 columns in one table using one slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1988096#M43956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316747" data-lia-user-login="winnieymh" class="lia-mention lia-mention-user"&gt;winnieymh&lt;/a&gt;&amp;nbsp; - try something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure1 =
VAR __Dt =
    SELECTEDVALUE ( [Date from Slicer] )
RETURN
    CALCULATE ( SUM ( Record[Amount] ), Calendar[Date] &amp;lt; __Dt )
        + CALCULATE (
            SUM ( Record[Amount] ),
            Calendar[Date] &amp;lt; __Dt,
            USERELATIONSHIP ( Record[Date2], Calendar[Date] )
        )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 19:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1988096#M43956</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-07-29T19:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter 2 columns in one table using one slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1988111#M43957</link>
      <description>&lt;P&gt;Thank you so much, it's a very good suggestion!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 19:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-2-columns-in-one-table-using-one-slicer/m-p/1988111#M43957</guid>
      <dc:creator>winnieymh</dc:creator>
      <dc:date>2021-07-29T19:47:23Z</dc:date>
    </item>
  </channel>
</rss>

