<?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: Measures to remove columns… in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2364702#M60513</link>
    <description>&lt;P&gt;Thank you for your time and assistance with this. I will review and check up on the DAX measure you have used.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 13:13:23 GMT</pubDate>
    <dc:creator>Dbrunts0888_</dc:creator>
    <dc:date>2022-02-28T13:13:23Z</dc:date>
    <item>
      <title>Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2357135#M60080</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;im new to this and I've already hit a stumbling block after trying to move training courses into real life...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margin lookup table shows w.e date and margin amount (it changes at different times in year)&lt;/P&gt;&lt;P&gt;misc charge lookup shows rate by site so I can convert misc charge into hours&lt;/P&gt;&lt;P&gt;hours spend data table shows total hours worked and misc columns...&lt;/P&gt;&lt;P&gt;misc columns converted into hours via above (calculated lookup values column)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had to create another calculated column to pull in margin using if statements rather than a measure.&amp;nbsp;&lt;BR /&gt;can this be done?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2357135#M60080</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-23T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2357444#M60095</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you post sample data as text and expected output?&lt;BR /&gt;Not enough information to go on;&lt;BR /&gt;&lt;BR /&gt;please see this post regarding How to Get Your Question Answered Quickly:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;The most important parts are:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;BR /&gt;4. Relation between your tables&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 02:16:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2357444#M60095</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-02-24T02:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358146#M60140</link>
      <description>&lt;P&gt;Hi VahidDM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for the lack of information... hopefully the below will help a little more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the tables / relationships I have built so far:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;HoursSpend_Data:&lt;/P&gt;&lt;P&gt;This table holds all the hours by ID number + any MISC Payments for the colleagues.&lt;/P&gt;&lt;P&gt;I have had to bring in Margin PH &amp;amp; MISC Charge rate as calculated columns rather than being able to do calculations as measures.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margin PH Lookup:&lt;/P&gt;&lt;P&gt;Shows each weekending data &amp;amp; the margin associated to that week (it changes at certain times in the year)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Travel Hours Lookup:&lt;/P&gt;&lt;P&gt;Shows the Site ID, W.E Date and charge rate (again these charge rates change throughout the year)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is trim down the table width of the hours spend by not having to store the static values as calculated columns. I need too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take the MISC Charge 1 &amp;amp; 2 columns from Hours Spend Data &amp;amp; Divide it by the correct charge rate by Site ID &amp;amp; W.E Date - in turn this will spit out a 2 decimal place figure (MISC Hours)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then need to combine Total Worked Hours &amp;amp; Total MISC Hours together (Total Combined Hours)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then need to take the Total COmbined Hours &amp;amp; multiple it by the Margin PH depending on the W.E Date of the hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain, we have a team of Administrators doing this manually every single week, so I thought this was a good test to automate and use the skills from the courses I have been on... I have managed to automate, but would prefer to remove calculated columns and look at developing more advanced DAX to make the performance and size better.&lt;/P&gt;&lt;P&gt;Administrators currently take Temp ID from lookup list, open up relevant payroll file, if worked calculated the hours and type into a manual tracker - then apply the margin. It takes them around 2-3 hours a week where as this now only takes 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate you taking the time to reply and hopefully this gives you a little more context.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:51:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358146#M60140</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T08:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358172#M60142</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Most probably yes you can. Can you please share a screenshot of your data model showing column names in each table?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:50:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358172#M60142</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-24T08:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358181#M60144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just added this in as a reply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:52:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358181#M60144</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358239#M60147</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok now is much more clear &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Is is possible that you can share a sample data file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358239#M60147</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-24T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358271#M60152</link>
      <description>&lt;P&gt;How can you attach sample data here? (Sorry really new to this)&lt;/P&gt;&lt;P&gt;Really appreciate your time.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:19:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358271#M60152</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358295#M60153</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Upload to WeTransfer for example and send the link&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358295#M60153</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-24T09:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358300#M60155</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;has this worked?&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-1z4UJaidgH" target="_blank"&gt;https://we.tl/t-1z4UJaidgH&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358300#M60155</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358318#M60158</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;has this worked?&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-1z4UJaidgH" target="_blank"&gt;https://we.tl/t-1z4UJaidgH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358318#M60158</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358428#M60172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you like to show the results on a pivot table? Sliced by date heirarchy for eaxample? Or you need only a calculated column in one of the tables? Please provide details on the desired result. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358428#M60172</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-24T10:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358456#M60173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is to have 2 pivot tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Summary Tab:&lt;/P&gt;&lt;P&gt;Showing Branch &amp;amp; Total Margin by W.E Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colleague Summary Tab:&lt;/P&gt;&lt;P&gt;Showing Branch, Colleague ID / Name (Removed from Sample Data), Total Hours &amp;amp; Margin Payback by W.E Date... example below:&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to learn how to make things more efficient and move away from the lookup minsdset of old. Measure over CC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2358456#M60173</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-24T10:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2364678#M60512</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361856" data-lia-user-login="Dbrunts0888_" class="lia-mention lia-mention-user"&gt;Dbrunts0888_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the sample file with the report&amp;nbsp;&lt;A href="https://www.dropbox.com/t/TnKpHp22hgLlkqQJ" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/TnKpHp22hgLlkqQJ&lt;/A&gt;&lt;BR /&gt;First of all I have to say that working with Power Pivot is not a pleasant experience &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Your whole subject is about building the correct data model. As you can see below I have added a Calendar Table (can be created in PowerPivot with one click). Also I have created a separate&amp;nbsp;Branch Table that contains the unique list of names and numbers of all branches. Other tables should have the required column for building&amp;nbsp;the correct relationship (either date or branch number or sometimes both)&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Once your data model is set, the rest is simple. You Net Margin by Branch/Date measure is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Total Hours Worked :=
SUMX (
    CROSSJOIN ( VALUES ( Branches[BRANCH] ), VALUES ( 'Calendar'[Date] ) ),
    CALCULATE (
        (
            SUM ( HoursSpend[Hours] )
                + DIVIDE (
                    ( SUM ( HoursSpend[chmisc1] ) + SUM ( HoursSpend[chmisc1] ) ),
                    VALUES ( TravelHours_Charge[CHARGE] )
                )
        )
            * VALUES ( MarginPH[MARGIN] )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how your report looks like. Must be interested in other detailed reports, please feel free to clarify your requirement so I can modify.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Please let me know if you have any further requirement.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 13:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2364678#M60512</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-28T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measures to remove columns…</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2364702#M60513</link>
      <description>&lt;P&gt;Thank you for your time and assistance with this. I will review and check up on the DAX measure you have used.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 13:13:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-to-remove-columns/m-p/2364702#M60513</guid>
      <dc:creator>Dbrunts0888_</dc:creator>
      <dc:date>2022-02-28T13:13:23Z</dc:date>
    </item>
  </channel>
</rss>

