This post is a logical continuation of previous one where I described how to place measures in rows in Power BI table visual.
Here I again talk about trend tables that looks like
It displays several measures in a matrix with months, so we may see development of each measure.
Data viz gurus will say that such data must be on chart.
Right, but sometimes people want to see figures in tables and … nothing else.
One of the problems here is to display month first letters in right order. Continue reading
Standard way of display measures in Power BI table visuals (Table and Matrix) – in columns.
But what if you required to display measures in rows and Year/Month in columns to see trend and remain relation with slicers and other visuals, keeping table flexible?
I couldn’t find something like Transpose table in Table/Matrix properties. And it is not possible to pull measure in rows.
In addition, required table contains rows with same value in column [KPI] – “Growth” with indent. And in different rows it has Growth of different measures.
How to do this in Power BI Desktop? Continue reading
Part 1 describes approach showing how to work with List.Generate, Table.FromRecords, List CrossJoin in Get & Transform (aka Power Query, M language).
Homework is done. Advice is digested.
And I’m ready to introduce another solution to combine multiple tables rows.
It is so simple, and can be done in UI!
All regards and honor should go to Imke Feldman (http://www.thebiccountant.com/) as she found that “epic Pokemon”.
I looked at this task as a programmer, thinking about loops and iterations.
Imke – completely differently – as simple user, don’t even thinking about programming, as she said🙂.
Remind, we start from four tables
And want to mix all rows to get all possible combinations (indexed).
How to do this using UI only? Continue reading
No, it is not another birthday of PowerBI🙂. It is me turned 31 today.
Every year my wife bakes a cake for my colleagues on my birthday.
And every year “birthday, b-day, bi-day, BondarenkoIvan-day” cake for colleagues is decorated by something related to the most interesting moment in my work during last year.
2013 I joined HILTI Russia (HILTI-case), my first experience of work on global scale, a place where I significantly developed myself, started blogging to improve English, met a lot of smart and friendly people, where many things happened with me, long list actually.
2014 we finished six implementations of SAP Business ByDesign, where I was responsible for reporting and workarounds for processes, that system doesn’t handle (cake with flags).
2015 I won HILTI Star Club reward as “best entrepreneur”, optimizing business processes, pro-actively helping everyone with automation of routine, reports, Excel related stuff, simply consulting on best practices, training colleagues and so on (2-floor cake decorated with stars). Deluxe trip to Cancun paid by company was absolutely awesome, unforgettable!
2016 we finally started an official project on PowerBI. Very significant moment.
If you have some time to explore other sweet works – welcome to my wife’s collection of cakes.
Recently I faced interesting Power Query problem. Actually, initial problem has nothing related to Power Query.
I required to export quite big volume of data from SAP BW using Business Objects Analysis addin (BO Analysis, or BOA) and save as CSV. Amount of data is literally huge, so it was impossible to export it in one query and even in 10.
I wrote a VBA macro with a loop, where each iteration had to 1) set variables and filters 2) refresh data 3) save result as csv.
So, I had to prepare set of variables and filters for each step of loop, setting filters on several dimensions.
Following four tables describe all possible filters I needed:
In this post I consider two types of hierarchies
First table defines typical hierarchy of companies.
Usually, such hierarchy is used for financial reports to group key figures.
Most probably, we know number of hierarchy levels upfront, but not always.
Task: Expand hierarchy, automatically detect quantity of levels in resulting table using Power Query (Get & Transform) / Power BI
Stay close to scenario described in pattern: http://www.daxpatterns.com/parent-child-hierarchies/
Second table defines substitution of products.
Case: sometimes we required to get sales history of all predecessor products and group result on Actual Product. There can be multiple substitutions, we never know amount.
Task: In this case we need to find the latest successor, Actual Product for each product in other words.
I know what you think.
Yet another solution to refresh Excel files with connections and Data Model (aka PowerPivot).
Plenty of them can be found on the Internet. Different programming languages, different level of complexity
- Excel and PowerPivot refresh suite: https://excelrefresher.codeplex.com/
Power Shell: https://rpmachado.wordpress.com/2015/07/10/powershell-auto-refresh-excel-powerpivot-data/
And, of course – Power Update
Year ago, when I decided to write my own refreshing program, Power Update was already on market, however, I couldn’t get it for myself, due to some reasons. In addition, I wanted to slightly adjust a process of refreshing and saving.
Before you start reading this article, I recommend you to go through very good post on Ken Puls’s blog – Pass Parameters to SQL Queries.
If it is fine for you to use native queries to database then most probably scenario described below is not so interesting for you.
Here I’ll talk about workaround allowing to use query folding and pass parameters in Power Query without building of native SQL query.
Generate N workbooks with data models populated with limited data scope.
Then each workbook will be shared with certain group of people, that allowed to see only relevant set of data (e.g. department OPEX of particular subsidiary).
This is dictated by fact, that if you share Excel workbook with someone – user immediately has access to all info inside data model. So, I cannot create one common data model and hide slicer somewhere with activated department. I must prepare separated workbooks.
Data: Table with millions of records in SQL database – main data source for report (query folding required for obvious reasons)
Tools: Excel + Power Query + PowerPivot
Support data: table in Excel, defining datasets – data scopes, let’s call it Control Table
Post describes how Power Query (Get & Transform) can be used as ETL tool for SAP Business ByDesign (SAP ByD).
Purely Self-Service BI solution built on Excel for SAP Business ByDesign (SAP ByD).
How to extract master and operational data from SAP ByD using Power Query
Common information can be found in my previous posts, which I’d recommend to go through
Several ways of data extraction from SAP Business ByDesign
Query SAP Business ByDesign Web Services via Power Query
From all possible methods of data extraction, I chose Excel + Power Query as the most simple one for Modern Excel data analysts (non-IT pro).
What do we need to start this journey?
What can help?
Massive data extraction from SAP ByDesign
Let’s start from the most interesting – extract of large data volume from SAP ByD.
Recently I helped my colleague with a report. The task was to consolidate data from multiple Excel files, each contains 100k-500k rows. Hence, size of each Excel file is relatively big.
I proposed to use xlsb to store those files. One file per month, report needs R24m, so 50 MB is less than 150 MB.
In the end I finished with deep analysis what is better as Excel-files database for Power Query – XLSB or XLSX.
For PQ solutions use XLSX instead of XLSB
PQ from XLSX twice faster than from XLSB
Engine handling XLSB from time to time return error – cannot read file
“UseHeaders” parameter of Excel.Workbook function works differently for xlsx and xlsb
If sheet and table names are equal in Excel workbook – Navigator generates unique name of object.
If you interested how I revealed all this – continue reading.