<?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: SELECTEDVALUE alternate result not passing to filter - is there a way to do this? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579211#M73955</link>
    <description>&lt;P&gt;That works perfectly, thankyou so much &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;P&gt;I thought i was close to working it out, but this is very different to my attempt&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 05:55:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-15T05:55:31Z</dc:date>
    <item>
      <title>SELECTEDVALUE alternate result not passing to filter - is there a way to do this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579083#M73947</link>
      <description>&lt;P&gt;I posted this previously but i don't think i was able to explain my problem correctly - I would like the signups vs target visual to show the latest month if nothing is selected in the signups by month visual - it currently shows the full history if nothing is selected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBIX with sample data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1khDD9vZDYgV14BDx-Ti1nJiStQGsrmGM/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1khDD9vZDYgV14BDx-Ti1nJiStQGsrmGM/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you select a month in the first visual the second visual filters correctly - if nothing is selected the second visual should show May (as per the selected month card) but it shows all months.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 04:42:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579083#M73947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T04:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDVALUE alternate result not passing to filter - is there a way to do this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579189#M73952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below measures and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SelectedMTD cumulative = 
VAR _maxdate =
    CALCULATE ( MAX ( Volumes[original_received_date] ), REMOVEFILTERS () )
VAR _maxmonthyear =
    MAXX (
        FILTER ( ALL ( DIM_Calendar ), DIM_Calendar[Date] = _maxdate ),
        DIM_Calendar[MonthYear]
    )
VAR _mtdmeasure =
    CALCULATE ( SUM ( Volumes[count per day] ), DATESMTD ( DIM_Calendar[Date] ) )
VAR SignUpsMTD =
    SWITCH (
        TRUE (),
        CALCULATE ( COUNTROWS ( VALUES ( DIM_Calendar[MonthYear] ) ), ALLSELECTED () ) = 1, _mtdmeasure,
        CALCULATE (
            SUM ( Volumes[count per day] ),
            DATESMTD ( DIM_Calendar[Date] ),
            DIM_Calendar[MonthYear] = _maxmonthyear
        )
    )
RETURN
    SignUpsMTD&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Target MTD = 
VAR _maxdate =
    CALCULATE ( MAX ( Volumes[original_received_date] ), REMOVEFILTERS () )
VAR _maxmonthyear =
    MAXX (
        FILTER ( ALL ( DIM_Calendar ), DIM_Calendar[Date] = _maxdate ),
        DIM_Calendar[MonthYear]
    )
VAR _mtdmeasure =
    CALCULATE ( SUM ( Targets[Target] ), DATESMTD ( DIM_Calendar[Date] ) )
VAR SignUpsMTD =
    SWITCH (
        TRUE (),
        CALCULATE ( COUNTROWS ( VALUES ( DIM_Calendar[MonthYear] ) ), ALLSELECTED () ) = 1, _mtdmeasure,
        CALCULATE (
            SUM ( Targets[Target] ),
            DATESMTD ( DIM_Calendar[Date] ),
            DIM_Calendar[MonthYear] = _maxmonthyear
        )
    )
RETURN
    SignUpsMTD
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 05:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579189#M73952</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-06-15T05:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDVALUE alternate result not passing to filter - is there a way to do this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579211#M73955</link>
      <description>&lt;P&gt;That works perfectly, thankyou so much &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;P&gt;I thought i was close to working it out, but this is very different to my attempt&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 05:55:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579211#M73955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T05:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDVALUE alternate result not passing to filter - is there a way to do this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579578#M73975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Here is another way of doing that similar to yours&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/t/OUOkIshFtRXkSqKf" target="_blank"&gt;https://www.dropbox.com/t/OUOkIshFtRXkSqKf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:10:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDVALUE-alternate-result-not-passing-to-filter-is-there-a/m-p/2579578#M73975</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-15T08:10:39Z</dc:date>
    </item>
  </channel>
</rss>

