Solved

Excel - doing Sum inside Data Model

Posted on 2016-08-02
4
89 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
ID: 41740402
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
ID: 41742200
@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
ID: 41765547
Thank you xtermie
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 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

19 Experts available now in Live!

Get 1:1 Help Now