<?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 and Date-Slicer Issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152674#M112982</link>
    <description>&lt;P&gt;You will need to enable interaction between the visuals, otherwise the selected value from the slicer will never be passed into the target visual. If the relationship needs to be present for other visuals then you will need to modify any measures used in the target visual, possibly by using a calculation group, to disable the relationship or otherwise override it.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 13:53:02 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-03-24T13:53:02Z</dc:date>
    <item>
      <title>Selectedvalue and Date-Slicer Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152496#M112972</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have a slicer that contains a date hierarchy. Additionally, I have a table visual.&amp;nbsp;&lt;BR /&gt;The table visual is set to have no filter actions when the slicer is selected (using the edit interactions option).&lt;BR /&gt;However, in my table visual I want to show data for the previous month of the selected value in the slicer.&amp;nbsp;&lt;BR /&gt;The slicer date values come from a separated date table (tbl_dates).&lt;BR /&gt;&lt;BR /&gt;Using the following measure I would like to get the data from the master_actuals table for the previous month of my selection.&lt;BR /&gt;Happy for any help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;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&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;master_actuals&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;master_actuals&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;master_acutals&lt;/SPAN&gt;&lt;SPAN&gt;[Month]&lt;/SPAN&gt;&lt;SPAN&gt; = Prev_Month_Selected&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;master_acutals&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Year_Selected&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;Result&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I add the month and year manually it works just fine:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;master_acutals&lt;/SPAN&gt;&lt;SPAN&gt;[Month]&lt;/SPAN&gt;&lt;SPAN&gt; = 1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;master_acutals&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2023&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152496#M112972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selectedvalue and Date-Slicer Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152509#M112975</link>
      <description>&lt;P&gt;Make sure that there is no relationship between your dates table and the master fact table, then turn interactions between the visuals. That way no filter will be applied to the fact table, but you can still use SELECTEDVALUE and your existing code should work.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152509#M112975</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-24T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selectedvalue and Date-Slicer Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152547#M112978</link>
      <description>&lt;P&gt;Thanks for the response.&lt;BR /&gt;I would like to get it work even with a relationship between the two tables as it is a convenient filter for other visuals based on a date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:54:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152547#M112978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selectedvalue and Date-Slicer Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152674#M112982</link>
      <description>&lt;P&gt;You will need to enable interaction between the visuals, otherwise the selected value from the slicer will never be passed into the target visual. If the relationship needs to be present for other visuals then you will need to modify any measures used in the target visual, possibly by using a calculation group, to disable the relationship or otherwise override it.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selectedvalue-and-Date-Slicer-Issue/m-p/3152674#M112982</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-24T13:53:02Z</dc:date>
    </item>
  </channel>
</rss>

