<?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 Fomula for Combining Multiple Columns? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3354287#M126001</link>
    <description>&lt;P&gt;Thanks for the quick response and for the link to better understand the unpivot tool.&amp;nbsp; I assume from there I should use a calculated column with an "IF" function to place the desired values "Renovation", "Addition", and "New Construction" in this new column that will become my dropdown slicer.&amp;nbsp; I am new to DAX, but does that approach make sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 00:41:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-28T00:41:13Z</dc:date>
    <item>
      <title>DAX Fomula for Combining Multiple Columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3352107#M125885</link>
      <description>&lt;P&gt;So I have a database with several thousand rows, with each row representing a unique architectural project, and our approach to recording the types of projects is to place an 'X' in one or multiple columns for that project's row for "Renovation", "Addition" and "New Construction" (many projects will fall into 2 categories.)&amp;nbsp; I'm struggling to visualize how to covert these X's into a single new column that I can use to create a dropdown slicer to filter a table based on the selected project types.&amp;nbsp; Do I need to Transpose or Pivot or would a single calculated value approach be sufficient?&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 00:54:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3352107#M125885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-27T00:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fomula for Combining Multiple Columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3352211#M125891</link>
      <description>&lt;P&gt;The option you are looking for is in the Power Query editor which can be opened in either Power BI or Excel. I am assuming you know how to get to this point but if you need help, let me know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once your data is loaded into Power Query, select the last 3 columns of your data, click on the Transform tab, and find the Unpivot Columns&amp;nbsp;tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will change the layout of your dataset to 4 total columns. Two containing Project # and Project Name and two new columns called Attributes, with your project types, and Values, with the Xs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's more info -&amp;nbsp;&lt;A href="https://support.microsoft.com/en-gb/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098" target="_blank"&gt;https://support.microsoft.com/en-gb/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 02:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3352211#M125891</guid>
      <dc:creator>djallarii</dc:creator>
      <dc:date>2023-07-27T02:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fomula for Combining Multiple Columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3354287#M126001</link>
      <description>&lt;P&gt;Thanks for the quick response and for the link to better understand the unpivot tool.&amp;nbsp; I assume from there I should use a calculated column with an "IF" function to place the desired values "Renovation", "Addition", and "New Construction" in this new column that will become my dropdown slicer.&amp;nbsp; I am new to DAX, but does that approach make sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 00:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3354287#M126001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-28T00:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fomula for Combining Multiple Columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3355553#M126085</link>
      <description>&lt;P&gt;Based on the image you provided and the description of what you're trying to do, there's actually no DAX needed at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The steps below are assuming the source data is an Excel document formatted as indicated in the image you provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the source data is in a true database, then the first few steps may be a bit different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Open &lt;STRONG&gt;Power BI&lt;/STRONG&gt;, select &lt;STRONG&gt;Import data from Excel&lt;/STRONG&gt;, and navigate to and select the source file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: Select the source table from the options on the left and then click &lt;STRONG&gt;Transform Data. &lt;/STRONG&gt;This will open the &lt;STRONG&gt;Power Query Editor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3: Hold &lt;STRONG&gt;CTRL&lt;/STRONG&gt; and click column header &lt;STRONG&gt;Renovation, Addition, New Construction&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 4:&amp;nbsp;Click the &lt;STRONG&gt;Transform&lt;/STRONG&gt; tab on the tool ribbon and then click &lt;STRONG&gt;Unpivot Columns &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 5: Double-click the &lt;STRONG&gt;Attribute&lt;/STRONG&gt; column to rename it accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Step 6: Double-click the &lt;STRONG&gt;Value&lt;/STRONG&gt; column to rename it accordingly, though once the data is unpivoted, this field is no longer necessary and can actually be removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 7: Click &lt;STRONG&gt;Home&lt;/STRONG&gt; on the tool ribbon and selected &lt;STRONG&gt;Close &amp;amp; Apply&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now your data is formatted for your described use. You can add Project #, Project Name, and Project Type to the columns of a table, and add Project Type to a slicer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 14:18:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fomula-for-Combining-Multiple-Columns/m-p/3355553#M126085</guid>
      <dc:creator>djallarii</dc:creator>
      <dc:date>2023-07-28T14:18:30Z</dc:date>
    </item>
  </channel>
</rss>

