<?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: Smart way to switch measures (Value/Volume) for more than 10 columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Smart-way-to-switch-measures-Value-Volume-for-more-than-10/m-p/3670483#M142361</link>
    <description>&lt;H3&gt;Power BI:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Parameter&lt;/STRONG&gt;: Go to the Modeling tab and create a new parameter named "Measure Type" with two options: "Value" and "Volume".&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Calculated Column or Measure&lt;/STRONG&gt;: Use DAX to create calculated columns or measures that dynamically switch between "Value" and "Volume" based on the parameter selection. For example:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Switch(&lt;BR /&gt;SELECTEDVALUE('Parameter'[Measure Type]),&lt;BR /&gt;"Value", [Value Column],&lt;BR /&gt;"Volume", [Volume Column]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace [Value Column] and [Volume Column] with the appropriate column names in your data model.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use Calculated Fields&lt;/STRONG&gt;: Use the calculated columns or measures in your visualizations instead of the original columns. They will automatically adjust based on the selected measure type.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By following this approach, you can efficiently handle switching between "Value" and "Volume" for multiple columns without creating separate parameters for each column.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 Jan 2024 14:10:56 GMT</pubDate>
    <dc:creator>123abc</dc:creator>
    <dc:date>2024-01-31T14:10:56Z</dc:date>
    <item>
      <title>Smart way to switch measures (Value/Volume) for more than 10 columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Smart-way-to-switch-measures-Value-Volume-for-more-than-10/m-p/3670377#M142348</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table looks like this (plus other volume related columns):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm aiming to have all columns switch to "Value" when a user selects it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While one apparent solution is to create a field parameter, such as "Volume/Value Period," for each column, doing so for around 10+ columns seems not optimal. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a more efficient approach you would recommend? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Smart-way-to-switch-measures-Value-Volume-for-more-than-10/m-p/3670377#M142348</guid>
      <dc:creator>RoshanK</dc:creator>
      <dc:date>2024-01-31T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Smart way to switch measures (Value/Volume) for more than 10 columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Smart-way-to-switch-measures-Value-Volume-for-more-than-10/m-p/3670483#M142361</link>
      <description>&lt;H3&gt;Power BI:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Parameter&lt;/STRONG&gt;: Go to the Modeling tab and create a new parameter named "Measure Type" with two options: "Value" and "Volume".&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Calculated Column or Measure&lt;/STRONG&gt;: Use DAX to create calculated columns or measures that dynamically switch between "Value" and "Volume" based on the parameter selection. For example:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Switch(&lt;BR /&gt;SELECTEDVALUE('Parameter'[Measure Type]),&lt;BR /&gt;"Value", [Value Column],&lt;BR /&gt;"Volume", [Volume Column]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Replace [Value Column] and [Volume Column] with the appropriate column names in your data model.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use Calculated Fields&lt;/STRONG&gt;: Use the calculated columns or measures in your visualizations instead of the original columns. They will automatically adjust based on the selected measure type.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By following this approach, you can efficiently handle switching between "Value" and "Volume" for multiple columns without creating separate parameters for each column.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Smart-way-to-switch-measures-Value-Volume-for-more-than-10/m-p/3670483#M142361</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-31T14:10:56Z</dc:date>
    </item>
  </channel>
</rss>

