<?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: DAX Selectvalue() does not work with Dynamic Calculation Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/965926#M11447</link>
    <description>&lt;P&gt;Columns are not dynamic, they are calculated at data load so they cannot change when you change a slicer. You need a measure.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 02:42:13 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-03-10T02:42:13Z</dc:date>
    <item>
      <title>DAX Selectvalue() does not work with Dynamic Calculation Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/965729#M11444</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to power BI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created table "Units" that has two choices (below). This is used in a Slicer.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Selected Units&lt;/TD&gt;&lt;TD&gt;Choice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acre-Feet&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Million Galons&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have a measure with formula:&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Units Value =&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE(Units[Choice],Units[Select Units], &lt;U&gt;SELECTEDVALUE(Units[Select Units],&lt;STRONG&gt;&lt;FONT color="#800080"&gt;"Million Gallons"&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/U&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The information for the measure displays correctly on the Card.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have another table "Volumes" with volumes and various units for volumes. I want to allow the user to choose one unit type from "Units" table for the report display. I added a New Column to the "Volumes" table with the formula:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volumn UOM = SWITCH(Units[Units Value],1,[To AF]*[Volume],2,[To MG]*[Volume],0).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The report will result in the alternative&amp;nbsp;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;"Million Gallons"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;FONT color="#800080"&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;dispite changes to the slicer. The Card does change values with the slicer. If I change&amp;nbsp;&lt;U&gt;SELECTEDVALUE(Units[Select Units],&lt;FONT color="#993366"&gt;&lt;STRONG&gt;"Acre-Feet")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt;&amp;nbsp;then the report will be in &lt;FONT color="#993366"&gt;&lt;STRONG&gt;&lt;U&gt;"Acre-Feet".&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have also tried using parameter for the same purpose but the results are the same. I have also tried using the&amp;nbsp;formula:&amp;nbsp;Units Value = &amp;nbsp;LOOKUPVALUE(Units[Choice],Units[Select Units], IF(HASONEVALUE(Units[Select Units]),VALUES(Units[Select Units]))), but that does not work.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I believe this should work because there are some article that say so,&amp;nbsp;&lt;A href="https://spr.com/powerbi-dynamic-calculations/" target="_blank" rel="noopener"&gt;https://spr.com/powerbi-dynamic-calculations/&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 22:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/965729#M11444</guid>
      <dc:creator>Ssibbett</dc:creator>
      <dc:date>2020-03-09T22:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Selectvalue() does not work with Dynamic Calculation Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/965926#M11447</link>
      <description>&lt;P&gt;Columns are not dynamic, they are calculated at data load so they cannot change when you change a slicer. You need a measure.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 02:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/965926#M11447</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-10T02:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Selectvalue() does not work with Dynamic Calculation Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/967123#M11480</link>
      <description>&lt;P&gt;If I put the column formula in a measure, the measure will not calculate values for each row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my column formula&amp;nbsp;&lt;EM&gt;Volumn UOM = SWITCH(Units[Units Value],1,[To AF]*[Volume],2,[To MG]*[Volume],0).&amp;nbsp;&lt;/EM&gt;&amp;nbsp;How do I make this into a measure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selectvalue-does-not-work-with-Dynamic-Calculation-Columns/m-p/967123#M11480</guid>
      <dc:creator>Ssibbett</dc:creator>
      <dc:date>2020-03-10T16:05:39Z</dc:date>
    </item>
  </channel>
</rss>

