Solved

Excel - doing Sum inside Data Model

Posted on 2016-08-02
4
78 Views
Last Modified: 2016-08-22
Hi Experts

I am doing some experiments in Excel Power Pivot Data Model and I am a total newbie in it. So I am not being able to figure out a method by which I can ADD Multiple Rows to get the Total or Sum Values for them.

I want to add the values for each row which have same value in xdate column, symbol column and putcall column.


I am using the following software versions -
Microsoft SQL Server Management Studio version-  12.0.2000.8,
Microsoft Office 2016 x64
and Windows 7 x64

I have attached the Excel File having the data.
Doing-Total-in-Data-Model.xlsx
0
Comment
Question by:happy 1001
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
xtermie earned 500 total points
Comment Utility
In the spreadsheet you state that you want
1) I want to add a NEW COLUMN named [oi_value], which is calculated by multiplying 2 columns named [price] and [oi].

and
2) do AGGREGATION based on this newly calculated column of [ oi_value ] in such a manner, that instead of getting the values for each strike separately, I get just one value for each symbol call and put.


For (1) you simply enter the calculation to the next free column, =[@price]*[@oi], and name the column oi_value

For (2) you can use SumIfs, Note that you will get the sum for each row (which may be replicated) for each combination of the same values in xdate, symbol and putcall columns

Check the attached file.

Hope this helps!
Doing-Total-in-Data-Model_wSolution.xlsx
1
 

Author Comment

by:happy 1001
Comment Utility
@xtermie, thank you so much for trying.

But I need to do this inside the Power Pivot Data Model and not in the excel sheet table.

And secondly, there should be just One Single Row for each Date per symbol for putcall column having values of C and P.

Thanks
0
 

Author Closing Comment

by:happy 1001
Comment Utility
Thank you xtermie
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now