Power Pivot Calculate issues

BKNewton29

New Member
Joined
Sep 17, 2010
Messages
30
I have a spread sheet that combines two excel data sources and four SQL data sources by bringing them into seperate sheets then combining them in MS Query onto a merged sheet.
I want to try and change this to come through Power Pivot

I believe I can't UNION ALL' excel and sql data sources into one table so I've now tried to create a calculated field that combines six seperate data connections in power pivot but this is where I'm stuck

I've tried =CALCULATE(sum(Test1[Actual Month 1]),(Test1[ReportCode])=1) but I actually want it to say
Test1[ReportCode] = 'an entry in the reportcode column in the data table that will amlgamate the figures'


I can't do a screen shot so below is what it looks like

Table for amalgamation

Report Type Report Code Calculated Field
Profit and Loss 7 xxxxx

Table Test1

Report Type Report Code Actual Month 1
Profit and Loss 7 2000
Profit and Loss 7 1000
Profit and Loss 1 10000

Any help appreciated
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Would you care to share in case it benefits someone else in future, please?
 
Upvote 0

Forum statistics

Threads
1,223,999
Messages
6,175,882
Members
452,679
Latest member
darryl47nopra

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