Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
multilevel grouping
kumbare
<p>Hi team,</p>
<p> </p>
<p>i want to generate report as shown in below details with three group level information.</p>
<p> </p>
<p> </p>
<p>Group 1
</p>
<p> Sub Group 2 Sub group 3</p>
<p> </p>
<p>Group 1a
</p>
<p> Sub Group 2a Sub group 3a</p>
<p> </p>
<p>Group 1b
</p>
<p> Sub Group 2b Sub group 3b</p>
<p> </p>
<p> </p>
<p>can you give me any example for such grouping ?</p>
Find more posts tagged with
Comments
pricher
<p>Hi,</p>
<p> </p>
<p>Can you send some sample data (in a CSV file) and how you want the data organized based on this data? It's not exactly clear to figure out from your mock up.</p>
<p> </p>
<p>Regards,</p>
<p> </p>
<p>P.</p>
kumbare
<p>Hi,</p>
<p> </p>
<p>I dont have CSV with me but you can refer below structure.</p>
<p> </p>
<p> </p>
<p><strong> Product 1</strong></p>
<p>
</p>
<p>Type 1 | Type 2</p>
<p>
</p>
<p>Series No | Price | Series No | Price </p>
<p> <strong> Product 2</strong></p>
<p>
</p>
<p>Type A | Type B</p>
<p>
</p>
<p>Series No | Price | Series No | Price</p>
<p> <strong>Product 3</strong></p>
<p>
</p>
<p>Type N | Type M</p>
<p>
</p>
<p>Series No | Price | Series No | Price</p>
<p> </p>
<p> </p>
<p>Thank You</p>
pricher
<p>A combination of a table and a crosstab can reproduce the sample structure.</p>
<p> </p>
<p>Assuming the following data set:</p>
<pre class="_prettyXprint _lang-">
Product,Type,SeriesNo,Price
Product 1,Type 1,Series1,1
Product 1,Type 2,Series2,2
Product 2,Type A,SeriesA,3
Product 2,Type B,SeriesB,4
Product 3,Type N,SeriesN,5
Product 3,Type M,SeriesM,6
</pre>
<p>You can create a data cube with the following structure:</p>
<p>
kumbare
<p>Thank you for quick reply.</p>
<p> </p>
<p>I have only one issue left in that. I dont want to show summary for fields.</p>
<p> </p>
<p>intead of that it should show actual values from CSV.</p>
<p> </p>
<p>lets add series code to csv</p>
<p> </p>
<p><span>Product</span><span>,</span><span>Type</span><span>,</span><span>SeriesNo</span><span>,</span><span>Price, <strong>code</strong></span><br><span>Product</span><span> </span><span>1</span><span>,</span><span>Type</span><span> </span><span>1</span><span>,</span><span>Series1</span><span>,</span><span>1, <strong>ABC</strong></span><br><span>Product</span><span> </span><span>1</span><span>,</span><span>Type</span><span> </span><span>2</span><span>,</span><span>Series2</span><span>,</span><span>2, <strong>XYZ</strong></span><br><span>Product</span><span> </span><span>2</span><span>,</span><span>Type</span><span> A</span><span>,</span><span>SeriesA</span><span>,</span><span>3, <strong>MNO</strong></span><br><span>Product</span><span> </span><span>2</span><span>,</span><span>Type</span><span> B</span><span>,</span><span>SeriesB</span><span>,</span><span>4, <strong>PQR</strong></span><br><span>Product</span><span> </span><span>3</span><span>,</span><span>Type</span><span> N</span><span>,</span><span>SeriesN</span><span>,</span><span>5, <strong>ABC</strong></span><br><span>Product</span><span> </span><span>3</span><span>,</span><span>Type</span><span> M</span><span>,</span><span>SeriesM</span><span>,</span><span>6</span></p>
<p> </p>
<p><span>Please guide me on this.</span></p>
pricher
<p>The solution is based on a dataset where each combination of Product and Type is unique. In other words, there can only be one Series and Price for each combination of Product and Type. In that case, the summary field will always summarize one value (in my example, I used the FIRST function.) If you have a new column, Code, then treat is as a new "summary" field and add it to the crosstab.</p>
<p> </p>
<p>P.</p>