Log returns in Power Pivot - powerpivot

I'm trying to work with a very large dataset in/for Excel of >3m rows, this can be loaded in using Power Query as a connection then into a Data Model using Power Pivot. Anyone know how to calculate the Log return from the previous close using Power Pivot formulas or seen a tutorial on this sort of thing?formula example

Related

Display very large data on C1FlexPivotPage

Example of C1FlexPivotPage
I have a very large dataset (4 million rows) which is extracted through a SQL query. I need to show data in a grid, which is part of C1FlexPivotPage, but it takes so long to calculate and display results. This data needs to be custom formatted like pivot tables, filters, and aggregate functions.
So my question is, what is the best practice for speeding up the process of creating these custom reports, such as the Excel pivot table part, which immediately updates the grid view?
Thanks for any advice.

Database to Excel charts (or pdf)

Hi guys I have a simple DB that has two fields in it (time and number 1-3), the data needs to be exported and shown in simple charts (horizontal bars from 0 to max time from my DB)? What is the best way to do that?
The easiest was to establish a direct data access from excel to SQL-Server and use Excel's abilities for the graphics.
If you need the data "exported", it is quite easy to get a table as CSV-list. Again this can be opened with Excel directly to do the graphical work there.
Depending on your environment you might think about any reporting tool, obviously the first choice was SSRS or PowerBI, which is part of the box.
You might even use a SELECT * FROM YourTable and just copy-and-paste the full result into Excel.
The main things to think about:
One-time action or regularly
Grade of automatism
Size of data / Count of rows
Location / Access-rights / Linkability of your systems
Existing tools

Power Query Time saved as Date

I'm using Power Pivot to connect to data stored in a folder. The data is stored as csv files. I'm using Power Query to format the data and connect to Power Pivot...
I am having issues with my Time columns which export with time in the following format 02:33:00 PM... When I load Power Pivot and create a Pivot Table to get the average time I get an popup: "we cannot summarize this field with Average because it's not a supported calculation for Date data types"
My question is how can I convert these columns so that I can get average time (apparently they are being stored as dates even though in Power Query I have them as Time Only.
Thanks

ETL transpose and cross join part of a table in SQL or Excel

I have an Excel spreadsheet that I need to import into a database. The data in the spreadsheet is of the following format.
I want to transform the 10 Wk columns into two columns: Week and Value. An example of this transformation I'd like is below (this is just the transformation of the first 3 rows in the table above).
Does anyone have any tips on making a transformation like this (either in SQL or Excel)? Ultimately I need to come up with a process to take the data from the spreadsheet of the format in the first table, transform it to look like the second table and load it into a Teradata database. I'm open to doing the transform process using SQL code, Excel or even Python code. Any help/suggestions is much appreciated. Thank you in advanced!

Formatting Text Data from one Column into Multiple columns

I have been working on this for 2 days and I have no had luck finding out how to do this.
I have a single column that contains data that I need to format.
Here is an image showing what I'm looking for. I'm using Excel 2013 and MS SQL Server 2012 Enterprise. I have the latest version of Power BI.
What I have What I want
I haven't dealt with data in this type of format before and I'm not a SQL guru so I'm looking for some help. I can't find anything online that is similar to my situation. I will use any tool that can do this. I've tried Excel, SQL, Power BI with no luck so far. I'm sure its something simple.
Thanks for your help.
I would tackle this in the Edit Queries window of Power BI. You should be able to achieve this by clicking around that window - no code is needed.
First I would add 3 Conditional Columns to split your data out, e.g.
Computer Name
if [Column1] begins with Machine Then (column) Column1
Repeat for the other 2 columns. Then select the Computer Name column and choose Transform / Fill / Down. Finally select the Computer Name column and choose Transform / Group By. Add aggregations for Max Status and Max Encryption.