<?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: How to swich column based on the calue of SELECTEDVALUE? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152800#M112993</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;That works and I have tested it. My case is a bit different. I need one parameter value to do to things. First it populate the select column/measure on the map and secondly it process and categorize the select column into a categorical feature and then add on the map as a legend value. The first works but the second does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 14:48:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-24T14:48:52Z</dc:date>
    <item>
      <title>How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152216#M112951</link>
      <description>&lt;P&gt;Hi all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stacked in getting the value of SELECTEDVALUE in calculated column. The DAX formula I am using is returning blank while the same formula works and returns value when used with a measure.&lt;/P&gt;&lt;P&gt;The DAX formula I am using looks like following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Legend = 
    SWITCH(
        SELECTEDVALUE(Metrics[Metrics Fields]),
       "'MyMeasures'[% 0-5 months]",[% 0-5 months category],
       "'MyMeasures'[% 6-23 months]",[% 6-23 months category]
    ) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:13:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152216#M112951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152359#M112963</link>
      <description>&lt;P&gt;It won't work in a calculated column. Columns are only calculated during data refresh and so do not take into account any slicers or filters. Why do you need it in a column rather than in a measure? Is it something you could achieve with a fields parameter ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 11:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152359#M112963</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-24T11:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152530#M112977</link>
      <description>&lt;P&gt;Thanks for the respose.&lt;/P&gt;&lt;P&gt;I use parameter to display the data on a map when selected in a slicer. Beside this i need to add a legend on the map that divides the displayed data into 4 categories. Any way, I need a solution to switch columns based on the selected value of the slicer.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152530#M112977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T12:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152646#M112981</link>
      <description>&lt;P&gt;I think a fields parameter might work, add both measures to the field parameter and then use the slicer that automatically gets generated. add the fields parameter to all visuals and it should work I think.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:45:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152646#M112981</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-24T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152800#M112993</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;That works and I have tested it. My case is a bit different. I need one parameter value to do to things. First it populate the select column/measure on the map and secondly it process and categorize the select column into a categorical feature and then add on the map as a legend value. The first works but the second does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:48:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152800#M112993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to swich column based on the calue of SELECTEDVALUE?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152816#M112994</link>
      <description>&lt;P&gt;The only thing I can think of is to add another column to the fields parameter table, link it to whichever table is driving the categories, so that a selection of the fields parameter filters the categories.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:56:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-swich-column-based-on-the-calue-of-SELECTEDVALUE/m-p/3152816#M112994</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-24T14:56:01Z</dc:date>
    </item>
  </channel>
</rss>

