<?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 Get value from a slicer when interactions are turned off in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2207319#M51991</link>
    <description>&lt;P&gt;For a complex measure, I need to retrieve the selected value from a date slicer that has the interactions turned off with my visual.&lt;/P&gt;&lt;P&gt;Basically, &lt;STRONG&gt;SELTECTEDVALUE&lt;/STRONG&gt; would do this, but it seems like this is working only when filtering is active. It returns BLANK once I disabled filtering from &lt;EM&gt;Edit Interactions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Variance_Actual_Forecast_Prev_Month = &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR currentDate=MIN(dim_Calendar[Date])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR selectedDate=SELECTEDVALUE(dim_ReportingCalendar[Month Year])&amp;nbsp; &lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;= this is BLANK&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR returnVal = IF (MIN(dim_Calendar[Date]) &amp;lt;= [Selected Month / Current Month], &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;CALCULATE([Actual_USD], FILTER(MonthlyCost, MONTH(MonthlyCost[ReportingDate])=(MONTH(selectedDate)))) - &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;CALCULATE([Forecast_USD], FILTER(MonthlyCost, MONTH(MonthlyCost[ReportingDate])=(MONTH(currentDate)-1))))&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;RETURN returnVal&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;dim_ReportingCalendar[Month Year]) slicer:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to get the value selected without filtering active?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 Nov 2021 08:39:26 GMT</pubDate>
    <dc:creator>raduchirila</dc:creator>
    <dc:date>2021-11-25T08:39:26Z</dc:date>
    <item>
      <title>Get value from a slicer when interactions are turned off</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2207319#M51991</link>
      <description>&lt;P&gt;For a complex measure, I need to retrieve the selected value from a date slicer that has the interactions turned off with my visual.&lt;/P&gt;&lt;P&gt;Basically, &lt;STRONG&gt;SELTECTEDVALUE&lt;/STRONG&gt; would do this, but it seems like this is working only when filtering is active. It returns BLANK once I disabled filtering from &lt;EM&gt;Edit Interactions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Variance_Actual_Forecast_Prev_Month = &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR currentDate=MIN(dim_Calendar[Date])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR selectedDate=SELECTEDVALUE(dim_ReportingCalendar[Month Year])&amp;nbsp; &lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;= this is BLANK&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;VAR returnVal = IF (MIN(dim_Calendar[Date]) &amp;lt;= [Selected Month / Current Month], &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;CALCULATE([Actual_USD], FILTER(MonthlyCost, MONTH(MonthlyCost[ReportingDate])=(MONTH(selectedDate)))) - &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;CALCULATE([Forecast_USD], FILTER(MonthlyCost, MONTH(MonthlyCost[ReportingDate])=(MONTH(currentDate)-1))))&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;RETURN returnVal&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;dim_ReportingCalendar[Month Year]) slicer:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to get the value selected without filtering active?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Nov 2021 08:39:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2207319#M51991</guid>
      <dc:creator>raduchirila</dc:creator>
      <dc:date>2021-11-25T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from a slicer when interactions are turned off</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2207640#M52005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="245714" data-lia-user-login="raduchirila" class="lia-mention lia-mention-user"&gt;raduchirila&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please add more details? maybe there is a way to find the desired value with active filter&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible to post a sample data as text and expected output?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;The most important parts are:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;BR /&gt;4. Relation between your tables&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 11:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2207640#M52005</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-25T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from a slicer when interactions are turned off</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2213135#M52291</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="245714" data-lia-user-login="raduchirila" class="lia-mention lia-mention-user"&gt;raduchirila&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'm not so sure why you turn off the interactions. The basic interaction logic of power bi visuals is based on the filter effect from the relationship keys. If you turn off the interaction, it means the DAX expression does not recognize/receive any filter effect so its row content is equal to whole table field values.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions" target="_blank"&gt;Change how visuals interact in a report - Power BI | Microsoft Docs&lt;/A&gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For selectedvalue function itself, it works when only one value exists. Handle multiple values will return blank as result or you can set 'alternate result' option to handle and aggregate these records.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/selectedvalue-function" target="_blank"&gt;SELECTEDVALUE function - DAX | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;EM&gt;&amp;gt;&amp;gt;Is there a way to get the value selected without filtering active?&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can create an unconnected parameter table that does not include a relationship to the fact table. For filter and interaction operation, you can use DAX expressions to create a measure filter to achieve them.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/applying-a-measure-filter-in-power-bi/" target="_blank"&gt;Applying a measure filter in Power BI - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 05:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-from-a-slicer-when-interactions-are-turned-off/m-p/2213135#M52291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T05:36:26Z</dc:date>
    </item>
  </channel>
</rss>

