<?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 Filtered Value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Value/m-p/852335#M6737</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for assistance with creating a dax. What I am trying to accomplish is allow users to toggle on and off data within a line/column chart. I have created a table of the measures that i would like them to ultimately select the values to be shown within the illustration (Budget, forecast, sales, etc.). I found a dax that calculates the value based on the selection. However, I am running into an issue as to when multiple values are selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To keep it simple the following formula works great.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Budget Revenue",[Budget Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this valule is dropped within the column valules on the column chart. If the Budget revenue is selected within the filters, the column shows, if nothing is selected it disappers.&amp;nbsp; Exactly what I desire. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But the end goal would to be able to have multiple values as such:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value 1:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Budget Revenue",[Budget Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value 2:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Forecast Revenue",[Forecast Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value x:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"x",[x]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Once the user selects 1 or multiple values, only the desired values show, however I am having no success. I have attemplted a formula with hasonevalue, but their can be multiple values.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help would be greatly appreciated. I hope this make sense.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 Nov 2019 22:24:22 GMT</pubDate>
    <dc:creator>jawilson808</dc:creator>
    <dc:date>2019-11-20T22:24:22Z</dc:date>
    <item>
      <title>Filtered Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Value/m-p/852335#M6737</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for assistance with creating a dax. What I am trying to accomplish is allow users to toggle on and off data within a line/column chart. I have created a table of the measures that i would like them to ultimately select the values to be shown within the illustration (Budget, forecast, sales, etc.). I found a dax that calculates the value based on the selection. However, I am running into an issue as to when multiple values are selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To keep it simple the following formula works great.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Budget Revenue",[Budget Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this valule is dropped within the column valules on the column chart. If the Budget revenue is selected within the filters, the column shows, if nothing is selected it disappers.&amp;nbsp; Exactly what I desire. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But the end goal would to be able to have multiple values as such:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value 1:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Budget Revenue",[Budget Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value 2:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"Forecast Revenue",[Forecast Revenue]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value x:switch(LASTNONBLANK(_VisibleMeasures[Column1],"Blank"),"x",[x]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Once the user selects 1 or multiple values, only the desired values show, however I am having no success. I have attemplted a formula with hasonevalue, but their can be multiple values.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help would be greatly appreciated. I hope this make sense.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Value/m-p/852335#M6737</guid>
      <dc:creator>jawilson808</dc:creator>
      <dc:date>2019-11-20T22:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Value/m-p/857883#M6870</link>
      <description>&lt;P&gt;I was able to solve this by adding a table for the values I wanted to be selected within the ullustration. Then i used the following dax based on the selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Visible Budget Revenue = var logicTest= countrows(distinct(filter(allselected(_VisibleMeasures[Visible Measures]),_VisibleMeasures[Visible Measures]="Budget Revenue")))=1 return if(LogicTest,[Budget Revenue],blank())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The dax was replicated for each of the measures that a user could select in the illustration. The only downside is that all possible possible measures will show even if not selected. I guess the upside to this illustrates what can be included with&amp;nbsp; visualization&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Nov 2019 03:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Value/m-p/857883#M6870</guid>
      <dc:creator>jawilson808</dc:creator>
      <dc:date>2019-11-27T03:03:17Z</dc:date>
    </item>
  </channel>
</rss>

