<?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: Parameter fields display only data for the current month by default in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4096389#M162563</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785131" data-lia-user-login="D4life" class="lia-mention lia-mention-user"&gt;D4life&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand your needs, please try the following ways:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;“Table”&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;P&gt;Delete the relationship between two tables.&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;P&gt;Create a measure.&amp;nbsp;If the date matches the selection in the slicer, it is marked as 1, otherwise 0. If slicer is not selected, mark the day date as 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure Parameter = 
VAR _SelectDate = VALUES('Date'[Date])
RETURN
IF(
    ISFILTERED('Date'[Date])
    &amp;amp;&amp;amp; 
    SELECTEDVALUE('Table'[Date]) in _SelectDate,
    1,
    IF(
        NOT(ISFILTERED('Date'[Date]))
        &amp;amp;&amp;amp;
        SELECTEDVALUE('Table'[Date]) = TODAY(),
        1,
        0
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply this measure to the filters pane.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a table visual.&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;P&gt;Here is the result.&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;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 02:11:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-13T02:11:09Z</dc:date>
    <item>
      <title>Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4076906#M161897</link>
      <description>&lt;P&gt;I created a table with parameter fields. There are about 30 different columns in the parameter filed. I want the table to only should records for only the current month. Then when the date slicer is used it should show based on the date slicer. If the report is loaded again, it should show only records for the current month.&lt;BR /&gt;&lt;BR /&gt;I thought I could filter the date column withing the Parameter field using dax but this is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 22:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4076906#M161897</guid>
      <dc:creator>D4life</dc:creator>
      <dc:date>2024-08-02T22:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4077289#M161905</link>
      <description>&lt;P&gt;Here's a general approach for that:&lt;BR /&gt;- create a string representation of your date column, replace the latest date with a string "Latest"&lt;BR /&gt;- sort that new column by the original date column&lt;BR /&gt;- add a slicer or visual/page/report level filter&lt;BR /&gt;- set the filter to "Latest"&lt;BR /&gt;- publish the pbix to the workspace/app&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 13:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4077289#M161905</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-08-03T13:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4077791#M161919</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I created a new column and used dax to check if the "Effective Date" column is a date in the current month, and it will give "Letest" otherwise "Old".&lt;BR /&gt;Step 2 - You said I should sort the new column by the original Date column. This gives the following error&lt;BR /&gt;" We can't sort "IsCurrentMonth" column by "Effective Date " . There can't be more than one value in "Effective Date " for the same value in "IsCurrentMonth". Please choose a different column for sorting. "&lt;BR /&gt;&lt;BR /&gt;Please assist&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 21:33:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4077791#M161919</guid>
      <dc:creator>D4life</dc:creator>
      <dc:date>2024-08-03T21:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4091303#M162372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785131" data-lia-user-login="D4life" class="lia-mention lia-mention-user"&gt;D4life&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&amp;nbsp;lbendlin&amp;nbsp;for your prompt reply, please allow me to share some content here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Table"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a New Date Table. And create a relationship&amp;nbsp;based on date columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = CALENDAR("7/1/2024", TODAY())&lt;/LI-CODE&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;P&gt;Create a measure.&amp;nbsp;Determines whether to select a date for filtering. By default, the parameter field only shows data for the current month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure Parameter = 
IF(
    ISFILTERED('Date'[Date]),
    CALCULATE(
        SELECTEDVALUE('Table'[Parameter]),
         FILTER(
            ALL('Table'),
            'Table'[Date] = SELECTEDVALUE('Date'[Date])
         )
    ),
    IF(
        SELECTEDVALUE('Table'[Date]) = TODAY(),
        SELECTEDVALUE('Table'[Parameter])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&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;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 09:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4091303#M162372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-09T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4095575#M162526</link>
      <description>&lt;P&gt;Thank you for your response. In my case the date column has repeated dates. Just like a normal transaction data would have. I noticed your solution had both columns unique. In my case both are not Unique. At least the date column is not unique.&lt;BR /&gt;Please assist with any suggestion&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:47:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4095575#M162526</guid>
      <dc:creator>D4life</dc:creator>
      <dc:date>2024-08-12T13:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter fields display only data for the current month by default</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4096389#M162563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785131" data-lia-user-login="D4life" class="lia-mention lia-mention-user"&gt;D4life&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand your needs, please try the following ways:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;“Table”&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;P&gt;Delete the relationship between two tables.&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;P&gt;Create a measure.&amp;nbsp;If the date matches the selection in the slicer, it is marked as 1, otherwise 0. If slicer is not selected, mark the day date as 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure Parameter = 
VAR _SelectDate = VALUES('Date'[Date])
RETURN
IF(
    ISFILTERED('Date'[Date])
    &amp;amp;&amp;amp; 
    SELECTEDVALUE('Table'[Date]) in _SelectDate,
    1,
    IF(
        NOT(ISFILTERED('Date'[Date]))
        &amp;amp;&amp;amp;
        SELECTEDVALUE('Table'[Date]) = TODAY(),
        1,
        0
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply this measure to the filters pane.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a table visual.&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;P&gt;Here is the result.&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;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 02:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameter-fields-display-only-data-for-the-current-month-by/m-p/4096389#M162563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T02:11:09Z</dc:date>
    </item>
  </channel>
</rss>

