Solved

Excel - doing Sum inside Data Model

Posted on 2016-08-02
4
121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

691 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