<?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: Creating Cateogry Product and Multiple Sub-Categroies in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940264#M153202</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment! I will post a diagram to what I am looking for. Let me know if that help to understand my questions.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 15:41:27 GMT</pubDate>
    <dc:creator>CuriousGuy001</dc:creator>
    <dc:date>2024-05-22T15:41:27Z</dc:date>
    <item>
      <title>Creating Cateogry Product and Multiple Sub-Categroies</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940023#M153187</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to figure out a way to create a Matrix vizualizations for a report, I have the on the column for Sales rep. and row for product category and what I want is to insert ONE measure that contain 4 subcategory and within the 4 subcategories can expand into more detail of items that have been sold by each Sales rep. The values will the Total count that the sales rep sold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I get whenever I drag 4 data (each column)&amp;nbsp;into the rows, it creates a subcategory of a subcategory of a subcategory, so I was wondering if there a way to fix this in a matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940023#M153187</guid>
      <dc:creator>CuriousGuy001</dc:creator>
      <dc:date>2024-05-22T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cateogry Product and Multiple Sub-Categroies</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940110#M153193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="736750" data-lia-user-login="CuriousGuy001" class="lia-mention lia-mention-user"&gt;CuriousGuy001&lt;/a&gt;&amp;nbsp;matrix usually reflect what is your model (relationships and measures).&lt;/P&gt;
&lt;P&gt;Check / change your model or measure definition to see how it affects matrix results.&lt;/P&gt;
&lt;P&gt;Without model and simple data it is hard to spot your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 14:36:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940110#M153193</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-05-22T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cateogry Product and Multiple Sub-Categroies</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940264#M153202</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment! I will post a diagram to what I am looking for. Let me know if that help to understand my questions.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:41:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940264#M153202</guid>
      <dc:creator>CuriousGuy001</dc:creator>
      <dc:date>2024-05-22T15:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cateogry Product and Multiple Sub-Categroies</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940412#M153206</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="736750" data-lia-user-login="CuriousGuy001" class="lia-mention lia-mention-user"&gt;CuriousGuy001&lt;/a&gt;&amp;nbsp;The right way to store this type of data is to have 3 columns Category &amp;gt; Subcategory &amp;gt;&amp;nbsp; Name by unpivoting other columns&lt;/P&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("i45Wcs3JLElVcCrNS8lJVdJRciwoANNORfnJ+TmZQJZzYnFxYlkikOWWWZyhFKsD0xOQk1iSmVeai9DsX5SYlw5ihOTnJpbkpxaDDEpNLQHRzkWJScVKsbEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Category = _t, Fruits = _t, Vegetables = _t, Roots = _t, Seafood = _t]),
    ChangedType = Table.TransformColumnTypes ( 
        Source,
        {
            {"Category", type text}, 
            {"Fruits", type text}, 
            {"Vegetables", type text}, 
            {"Roots", type text}, 
            {"Seafood", type text}
        }
    ),
    UnpivotedOtherColumns = Table.UnpivotOtherColumns (
        ChangedType, 
        {"Category"}, 
        "Subcategory", "Name"
    )
in
    UnpivotedOtherColumns&lt;/LI-CODE&gt;&lt;P&gt;use the above code to generate the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can create a Matrix like the following one and you won't have repeated unexisting combinations&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>Wed, 22 May 2024 16:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Cateogry-Product-and-Multiple-Sub-Categroies/m-p/3940412#M153206</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-05-22T16:42:45Z</dc:date>
    </item>
  </channel>
</rss>

