SAP report painter exports a n-dimensional table in excel as a nested group format (columns A:B). I need to get this onto tabular form (columns D:I) as a summarized table. Ideally I would get a direct data feed onto a summarized table, but that solution is quite far ahead.
Attached photo is a modified snippet for illustration purposes.
I have written a loop in VBA which does it using a variant approach. For approximately 15.000 rows, this takes around 40 seconds for 7 dimensions. I am wondering if any built-in excel functions could do that more efficiently?
In an OLAP tool such as SSAS, I can create dimensions and measures, and Excel respects that grouping. For example:
Notice the Measures at the top and all the dimension groups underneath it. However, when I try creating these relationships from within Excel, it just groups everything based on the table it comes from. For example:
The only 'Measures' you can define (if you can call it that) is a calculated field when you click the 'Measures' icon in Power Pivot:
Is there a way to specific which of the fields are measures and which are dimensions within Power Pivot (Excel)? If not, is there a way to do this in Power BI (I also have that)? And if not, is the only solution for separating these properly doing it in something like SSAS?
Is there a way to specific which of the fields are measures and which
are dimensions within Power Pivot (Excel)?
I am afraid , there is no way to specify or rearrange these in a new created pivot table in Excel.
If not, is there a way to do this in Power BI (I also have that)?
Yes you could do this in Power BI, by Analyse Power BI dataset in Excel. The PBI dataset would separate measures and dimensions But, you would need to have a Power BI Pro license for this operation.
I have a power pivot data model of around 20000 rows only and wish to take that data over power query window for further modification. What i'm doing right now is , go to Power Pivot Manage Data Model window and then Copy the data, paste it as normal CSV format and run over power query there. I'm looking forward to an easy way to link between power pivot model and power query, so I could just Refresh All and thereby both models will update without any manual copy/paste work. I have checked all through Google and various websites however all I could find was either copy and paste the data (that I'm doing right now) or a vba (however I couldn't figure out how that works, but it does ideally is a copy paste only to normal spread sheet. Please advice.
I am a newbie and I am trying to analyse SSAS tabular model data in Excel. But each time click the analyse in Excel button the data gets loaded into Excel but converts all numerical values into text and becomes impossible to create a pivot table. Is there any way around this?
I want my numerical values to remain numerical and not converted to text
I have tried using text to columns
I have tried multiplying the values by 1
I have tried so many other options but none of them worked
All suggestions are welcome
Thanks
I'm using an up-to-date version of Excel 2016 (via O365 E3 license) and using Power Query / Get & Transform Data. I can successfully create queries and load them to the page. I have also successfully created Power Pivot reports.
I would like to query single data points from the data loaded via Power Query. For instance, imagine a dataset called DivisionalRevenue with:
Date Division Revenue
2016-01-01 Alpha 1000
2016-01-02 Alpha 1500
2016-01-01 Beta 2000
2016-01-02 Beta 400
I could easily load that to an Excel workbook or include it in the data model and create a power pivot. However, Power Pivot doesn't always meet my requirements, particularly around how the data is displayed on the page. In order to achieve my goal I may want to be able to query individual data points.
I would like to have a cell on the page with a formula in it that I can use to query individual data points. If it was in a pivot table I could use something like:
=GETPIVOTDATA("Revenue",$A$3,"Date",DATE(2016,1,1),"Division","Alpha")
The lookup values (date and division) could be retrieved from a cell on the page or hard-coded into the formula. This is a requirement for several reports I'm working on.
Or, I could add a combined lookup column with Date and Division concatenated and use a vlookup to pull the values like:
=VLOOKUP("42371Alpha",I9:L13,4,FALSE)
Finally, I could use a combination of INDEX and MATCH to identify the correct row number and then pull the data.
All of these solutions require the data to be loaded onto a sheet. One requires a pivot table that has to be refreshed to work properly. The other two require creating arbitrary lookup columns so that you can match a row based on more than one field (date and division in this example), and you have to ensure that that lookup field's formula is properly extended down the length of the data table. In both cases I would have concerns when sharing this workbook with my colleagues in case someone affects the rather fragile setup of the pivot table or the lookup.
So, what I truly want to find is something equivalent to pivot table querying against a dataset.
** This doesn't exist, but I would like to know if something like it does **
=GETQUERYDATA("Revenue","DivisionalRevenue","Date",DATE(2016,1,1),"Division","Alpha")
Does such a thing exist? Can such a thing be done? Can I retrieve arbitrary data points from the dataset created through Power Query / Get & Transform Data?
I think that what you want are cubefunctions:
Some Background
How to easy create cubefunctions from a pivot table
There is a feature in Excel that allows you to query off of a PowerPivot model, but it's not highly advertised for some reason.
Once you have the data in your PowerPivot model, go to your Excel -> Data tab -> Existing Connections -> Tables tab
From there, choose the table that you want to start with. Once that table's data is on your excel sheet, you can actually right click that table -> go to "Table" -> "Edit DAX"
From there you can enter the following DAX function, as an example
EVALUATE
FILTER(SampleData,[Date]=DATE(2016,1,1) && SampleData[Division]="Alpha")
Make sure to choose Command Type=DAX in the drop-down. Here's how it looks on my screen:
To further improve your querying power, you can install the optional "DAX Studio" plugin for Excel, which allows you to write custom DAX queries and then export the results directly back to an Excel sheet.