New to (Power)Pivot world, task looks simple, but...

IvanR

New Member
Joined
Apr 13, 2016
Messages
1
I am from db world and beginer in (Power)Pivot world...

I have two data tables (views in sql server):

Table 1, aggreagaton of Clients: (ClientType, NoOfClients)
[TABLE="align: left"]
<tbody>[TR]
[TD]ClientType
[/TD]
[TD]NoOfClients
[/TD]
[/TR]
[TR]
[TD]ct1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]ct2
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]ct3
[/TD]
[TD]50
[/TD]
[/TR]
</tbody>[/TABLE]







Table 2, aggregation of casses: (ClientType, attribA, attribB, attribC, ... AttribH, NoOfCasses) - about 10 attributes, only 3000 rows...
[TABLE="align: left"]
<tbody>[TR]
[TD]ClientType
[/TD]
[TD]attribA
[/TD]
[TD]attribB
[/TD]
[TD]attribC
[/TD]
[TD]NoOfCases
[/TD]
[/TR]
[TR]
[TD]ct1
[/TD]
[TD]a1
[/TD]
[TD]b1
[/TD]
[TD]c1
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]ct1
[/TD]
[TD]a1
[/TD]
[TD]b2
[/TD]
[TD]c1
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]ct1
[/TD]
[TD]a1
[/TD]
[TD]b2
[/TD]
[TD]c2
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]ct2
[/TD]
[TD]a2
[/TD]
[TD]b1
[/TD]
[TD]c1
[/TD]
[TD]52
[/TD]
[/TR]
[TR]
[TD]ct2
[/TD]
[TD]a2
[/TD]
[TD]b2
[/TD]
[TD]c1
[/TD]
[TD]22
[/TD]
[/TR]
[TR]
[TD]ct2
[/TD]
[TD]a3
[/TD]
[TD]b2
[/TD]
[TD]c2
[/TD]
[TD]12
[/TD]
[/TR]
[TR]
[TD]ct3
[/TD]
[TD]a1
[/TD]
[TD]b1
[/TD]
[TD]c1
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]ct3
[/TD]
[TD]a2
[/TD]
[TD]b2
[/TD]
[TD]c1
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]ct3
[/TD]
[TD]a3
[/TD]
[TD]b2
[/TD]
[TD]c2
[/TD]
[TD]7
[/TD]
[/TR]
</tbody>[/TABLE]















I have to create identical reports, number of reports is equal to number of attributes – 10.
[TABLE="width: 480"]
<tbody>[TR]
[TD]
[/TD]
[TD]Rows
[/TD]
[TD]Column1
[/TD]
[TD]Other columns (value is Sum of NoOfCasses)
[/TD]
[/TR]
[TR]
[TD]ReportA
[/TD]
[TD]ClientType
[/TD]
[TD]NoOfClients
[/TD]
[TD]a1, a2, .., an
[/TD]
[/TR]
[TR]
[TD]ReportB
[/TD]
[TD]ClientType
[/TD]
[TD]NoOfClients
[/TD]
[TD]b1, b2,..., bn
[/TD]
[/TR]
[TR]
[TD]Report...
[/TD]
[TD]...
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]ReportH
[/TD]
[TD]ClientType
[/TD]
[TD]NoOfClients
[/TD]
[TD]h1, h2,..., hn
[/TD]
[/TR]
</tbody>[/TABLE]

Example report:
[TABLE="align: left"]
<tbody>[TR]
[TD]ClientType
[/TD]
[TD]NoOfClients
[/TD]
[TD]a1
[/TD]
[TD]a2
[/TD]
[TD]a3
[/TD]
[TD]Total Cases
[/TD]
[/TR]
[TR]
[TD]ct1
[/TD]
[TD]100
[/TD]
[TD]80
[/TD]
[TD][/TD]
[TD][/TD]
[TD]80
[/TD]
[/TR]
[TR]
[TD]ct2
[/TD]
[TD]200
[/TD]
[TD][/TD]
[TD]74
[/TD]
[TD]12
[/TD]
[TD]86
[/TD]
[/TR]
[TR]
[TD]ct3
[/TD]
[TD]50
[/TD]
[TD]5
[/TD]
[TD]6
[/TD]
[TD]7
[/TD]
[TD]18
[/TD]
[/TR]
[TR]
[TD]Grand Total
[/TD]
[TD]350
[/TD]
[TD]85
[/TD]
[TD]80
[/TD]
[TD]19
[/TD]
[TD]184
[/TD]
[/TR]
</tbody>[/TABLE]








When management asked for first report i made it manual. When they asked for these set of reports, it is time for BI… ;)
It looks simple, but pivot beginner is struggling to make it…

Thanks for any help, guideline…

Ivan
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top