<?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: Multiple Queries to Make Dynamic Report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-Queries-to-Make-Dynamic-Report/m-p/2769197#M38662</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306791"&gt;@kjcompton&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I think you only add columns into matrix column field and value field. I think you need to expand your matrix by adding columns in matrix row field.&lt;/P&gt;
&lt;P&gt;I think your data table should look like an unpivot table. I suggest you to add an index before your unpivot or add an index by group after unpivot.&lt;/P&gt;
&lt;P&gt;For refernece：&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/add-index-column" target="_self"&gt;Add an index column&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query" target="_self"&gt;Create Row Number for Each Group in Power BI using Power Query&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your table should look like as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1663223180655.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/784098iA4ED03F2C59A175B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1663223180655.png" alt="RicoZhou_0-1663223180655.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Matrix is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1663223584557.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/784106iEA516807197AE39C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1663223584557.png" alt="RicoZhou_1-1663223584557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 06:33:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-15T06:33:34Z</dc:date>
    <item>
      <title>Multiple Queries to Make Dynamic Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-Queries-to-Make-Dynamic-Report/m-p/2767747#M38653</link>
      <description>&lt;P&gt;I am trying to make a dynamic report where my end user can select their specific columns that they want to report on, and we are doing this because if you select all the columns you are looking at 60+ columns and it makes the report hard to look for data. Here are the steps that I have done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I did was I made a table with all the columns that are available/what the requester would like to report on, and I grouped them in categories as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjcompton_0-1663167696997.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/783702i626A6C8FC8FA2359/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjcompton_0-1663167696997.png" alt="kjcompton_0-1663167696997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. After I did this I brought that into a Hierarchy Slicer (as this will allow pick and choose of columns).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjcompton_3-1663168138625.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/783709i1CB333147775D763/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjcompton_3-1663168138625.png" alt="kjcompton_3-1663168138625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I then took all my separate queries (6) and unpivoted them so they could all relate to my main table (here is the linkage)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjcompton_1-1663167833440.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/783705iC0335DD95A06218B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjcompton_1-1663167833440.png" alt="kjcompton_1-1663167833440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. I then brought in a matrix table, but the issue here is each query that I unpivoted now has its own CaseID/EncounterID under the "rows" section of the matrix, under columns I had to bring in 6 different "originalcolumnnm" and under values I brought in the six different "first values", but the out put doesn't work. It just says "first value" across the top.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjcompton_2-1663168051613.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/783707i31ED9C4C06CA5C8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjcompton_2-1663168051613.png" alt="kjcompton_2-1663168051613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is how do I make this interactive and show the columns that I need with all these different queries? I feel there has to be an easier way... I appreciate everyone's help with this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:11:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-Queries-to-Make-Dynamic-Report/m-p/2767747#M38653</guid>
      <dc:creator>kjcompton</dc:creator>
      <dc:date>2022-09-14T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Queries to Make Dynamic Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-Queries-to-Make-Dynamic-Report/m-p/2769197#M38662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306791"&gt;@kjcompton&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I think you only add columns into matrix column field and value field. I think you need to expand your matrix by adding columns in matrix row field.&lt;/P&gt;
&lt;P&gt;I think your data table should look like an unpivot table. I suggest you to add an index before your unpivot or add an index by group after unpivot.&lt;/P&gt;
&lt;P&gt;For refernece：&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/add-index-column" target="_self"&gt;Add an index column&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query" target="_self"&gt;Create Row Number for Each Group in Power BI using Power Query&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your table should look like as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1663223180655.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/784098iA4ED03F2C59A175B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1663223180655.png" alt="RicoZhou_0-1663223180655.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Matrix is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1663223584557.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/784106iEA516807197AE39C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1663223584557.png" alt="RicoZhou_1-1663223584557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 06:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-Queries-to-Make-Dynamic-Report/m-p/2769197#M38662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T06:33:34Z</dc:date>
    </item>
  </channel>
</rss>

