<?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: Divide multiple columns by one column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831657#M6019</link>
    <description>&lt;P&gt;So, trying to mimic this from Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stages 1-5 are all divided by stage-6.&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;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 18:49:44 GMT</pubDate>
    <dc:creator>fischelr01</dc:creator>
    <dc:date>2019-10-29T18:49:44Z</dc:date>
    <item>
      <title>Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831558#M6016</link>
      <description>&lt;P&gt;I have a measure that counts the number of funnel deals per stage.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Deal Count = CALCULATE(COUNT('FY, CW, CL Combined'[Stage Count]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I need to create a calculation that divides Stage-1 through Stage - 5 by stage 6.... in other words&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stage-1/Stage-6&lt;/P&gt;&lt;P&gt;Stage-2/Stage-6&lt;/P&gt;&lt;P&gt;Stage-4/Stage-6&lt;/P&gt;&lt;P&gt;Stage-5/Stage-6&lt;/P&gt;&lt;P&gt;Stage-6/Stage-6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The count measure was very straight forward.&amp;nbsp; Can't figure out how to make a measure that only includes stages 1-5, and a measure that only includes stage 6, allowing me to divide the former by the ladder.&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;Above is my count table, by stage.&amp;nbsp; For example of what I'm looking for, I'd need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;525/7670&lt;/P&gt;&lt;P&gt;393/7670&lt;/P&gt;&lt;P&gt;376/7184&lt;/P&gt;&lt;P&gt;278/7184&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:29:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831558#M6016</guid>
      <dc:creator>fischelr01</dc:creator>
      <dc:date>2019-10-29T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831642#M6018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98855" data-lia-user-login="fischelr01" class="lia-mention lia-mention-user"&gt;fischelr01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Not sure if I understand...would you provide what your expected outcome would look like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please read this post to get your question answered more quickly:&lt;BR /&gt;&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;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831642#M6018</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-29T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831657#M6019</link>
      <description>&lt;P&gt;So, trying to mimic this from Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stages 1-5 are all divided by stage-6.&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;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:49:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831657#M6019</guid>
      <dc:creator>fischelr01</dc:creator>
      <dc:date>2019-10-29T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831680#M6023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98855" data-lia-user-login="fischelr01" class="lia-mention lia-mention-user"&gt;fischelr01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can do this in Power Query.&amp;nbsp; Here is my solution.&lt;A href="https://1drv.ms/u/s!AgCd7AyfqZtEyixjbKzKhTvCCBZg?e=MwrAET" target="_blank" rel="noopener"&gt;Solution&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831680#M6023</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-29T19:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831692#M6024</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble extracting your file.&amp;nbsp; Is it possible to describe your solution in this thread?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831692#M6024</guid>
      <dc:creator>fischelr01</dc:creator>
      <dc:date>2019-10-29T19:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Divide multiple columns by one column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831719#M6025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98855" data-lia-user-login="fischelr01" class="lia-mention lia-mention-user"&gt;fischelr01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTJSio0FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Prospect = _t, Evaluate = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Prospect", Int64.Type}, {"Evaluate", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each [Prospect]+[Evaluate]),
    #"Renamed Columns" = Table.RenameColumns(#"Added Custom",{{"Custom", "Total"}}),
    #"Added Custom1" = Table.AddColumn(#"Renamed Columns", "Custom", each Value.Divide([Prospect],[Total])),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom1",{{"Custom", Percentage.Type}}),
    #"Renamed Columns1" = Table.RenameColumns(#"Changed Type1",{{"Custom", "Pros %"}}),
    #"Added Custom2" = Table.AddColumn(#"Renamed Columns1", "Evaluate %", each Value.Divide([Evaluate],[Total])),
    #"Changed Type2" = Table.TransformColumnTypes(#"Added Custom2",{{"Evaluate %", Percentage.Type}}),
    #"Added Custom3" = Table.AddColumn(#"Changed Type2", "Total %", each Value.Divide([Total],[Total])),
    #"Changed Type3" = Table.TransformColumnTypes(#"Added Custom3",{{"Total %", Percentage.Type}, {"Pros %", type number}}),
    #"Changed Type4" = Table.TransformColumnTypes(#"Changed Type3",{{"Pros %", Percentage.Type}})
in
    #"Changed Type4"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here is the advanced editor in Power Query. If you go to the Home tab in Power Query, you will see it.&amp;nbsp; Click on it to open, and then paste the above into it.&amp;nbsp; If you do this in a new Power BI, you may have to enter a little table to see it active. Here is my table. Create this, then open the Advance Editor, copy and paste right over the code that is there.&amp;nbsp; You will see the steps on the right side, and you can walk through each step to see what I did.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-multiple-columns-by-one-column/m-p/831719#M6025</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-29T20:05:27Z</dc:date>
    </item>
  </channel>
</rss>

