<?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: Generate rows at lower level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3022709#M102916</link>
    <description>&lt;P&gt;Thansk for your reply&amp;nbsp;&lt;SPAN&gt;Nathaniel_C ! , will try this option !!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 09:14:26 GMT</pubDate>
    <dc:creator>pmargari</dc:creator>
    <dc:date>2023-01-16T09:14:26Z</dc:date>
    <item>
      <title>Generate rows at lower level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3020761#M102756</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;Any tips to generetate rows at lower level from a table with data on quarters , just to set the same value of each month related to his quarter&amp;nbsp; ? (example below)&amp;nbsp;&lt;BR /&gt;I have budgets for salesrep , at quater level, that I want to generate de same amount but at month level , any tips to make this append ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate any tips&lt;BR /&gt;All the best&lt;BR /&gt;KR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 12:58:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3020761#M102756</guid>
      <dc:creator>pmargari</dc:creator>
      <dc:date>2023-01-14T12:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate rows at lower level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3021026#M102778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329042" data-lia-user-login="pmargari" class="lia-mention lia-mention-user"&gt;pmargari&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You will not be able to make this append because the column headings are different.&amp;nbsp; However you could add extra columns for each month based on the quarter values in Power Query. Go to the add column tab, Custom and name the columns by month, and insert the appropriate quarter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply this table to Power BI and select the quarter, the month columns as in the picture.&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;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 20:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3021026#M102778</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2023-01-14T20:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate rows at lower level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3022709#M102916</link>
      <description>&lt;P&gt;Thansk for your reply&amp;nbsp;&lt;SPAN&gt;Nathaniel_C ! , will try this option !!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 09:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3022709#M102916</guid>
      <dc:creator>pmargari</dc:creator>
      <dc:date>2023-01-16T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generate rows at lower level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3022733#M102919</link>
      <description>&lt;P&gt;Hello again&amp;nbsp;&lt;BR /&gt;I think the way I picture my need have created a missunderstood , sorry for that , what I need is&amp;nbsp; to create rows not columns as this example :&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&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;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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 09:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3022733#M102919</guid>
      <dc:creator>pmargari</dc:creator>
      <dc:date>2023-01-16T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generate rows at lower level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3023877#M103010</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329042" data-lia-user-login="pmargari" class="lia-mention lia-mention-user"&gt;pmargari&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color = IF(MAX(Sales[Month]) In{"Jan","Feb","Mar"},"yellow", "green") //Add this measure to use in your conditional formatting.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcsxJSi0qUdJRMjIAEsYgwhTKitWJVnLOSCzKSS2GSRmbAgkTEGFqCpZ3zEkrSk0BCYKkzUCEiQmEFRsLAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Sales Rep" = _t, Q1 = _t, Q2 = _t, Q3 = _t, Q4 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Sales Rep", type text}, {"Q1", Int64.Type}, {"Q2", Int64.Type}, {"Q3", Int64.Type}, {"Q4", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Jan", each [Q1]),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Feb", each [Q1]),
    #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Mar", each [Q1]),
    #"Added Custom3" = Table.AddColumn(#"Added Custom2", "Apr", each [Q2]),
    #"Added Custom4" = Table.AddColumn(#"Added Custom3", "May", each [Q2]),
    #"Added Custom5" = Table.AddColumn(#"Added Custom4", "June", each [Q2]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom5",{{"Jan", Int64.Type}, {"Feb", Int64.Type}, {"Mar", Int64.Type}, {"Apr", Int64.Type}, {"May", Int64.Type}, {"June", Int64.Type}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type1",{"Q1", "Q2", "Q3", "Q4"}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Removed Columns", {"Sales Rep"}, "Attribute", "Value"),
    #"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "Month"}, {"Value", "Amount"}}),
    #"Added Conditional Column" = Table.AddColumn(#"Renamed Columns", "Sort1", each if Text.Contains([Sales Rep], "t") then 1 else if Text.Contains([Sales Rep], "s") then 2 else if Text.Contains([Sales Rep], "d") then 3 else null),
    #"Added Conditional Column1" = Table.AddColumn(#"Added Conditional Column", "Sort2", each if [Month] = "Jan" then 1 else if [Month] = "Feb" then 2 else if [Month] = "Mar" then 3 else if [Month] = "Apr" then 4 else if [Month] = "May" then 5 else if [Month] = "June" then 6 else null),
    #"Changed Type2" = Table.TransformColumnTypes(#"Added Conditional Column1",{{"Sort1", type text}, {"Sort2", type text}})
in
    #"Changed Type2"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above is the m language to build your table in Power Query.&amp;nbsp; Then apply that table to Power BI, and add the measure above to conditional formatting.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&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;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 17:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-at-lower-level/m-p/3023877#M103010</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2023-01-16T17:34:39Z</dc:date>
    </item>
  </channel>
</rss>

