In this blog, I will check how easily geographic data can be handled in Power Bi compared to Excel.
Let’s have sales report with geographic data divided to four tables.
Tables are loaded to data model.

Tr_ord is the only transaction table with dimensions of order number, customer, product and sales quantity. Order number was changed to text as we don’t plan calculate anything with order number.

Customer master md_cust defines customer code, customer’s country and customer class large or small.

Product master data includes product code, name and sell price.

Continent based on customer’s country.
Data model is straightforward.

Relationships:

Creating the measures.

A simple measure to count order quantity.
DAX: = SUM(tr_ord[Quan])

A measure to multiply sales quantity of a material by corresponding material price.
DAX is here for copy pasting:
=sumx(tr_ord,[Quan]*RELATED(md_prod[Price]))
For the customer in Singapore two pieces of P3 and two pieces of P4 were sold. Price for P3 is 2,5 € and P4 is 2 €.

Pivot table selections.

This report has correct values but it could be more visual.
One option is to use Power BI.

Power query in Power BI looks similar to Power query in Excel.

Power BI created relationships automatically.

Relationships are same as in Excel even though interface is bit different.


The DAX is the same as in Excel, again interface is slightly different.


We add a visualization.

A multi-row card to check values.
Select the fields country from md_cust and measure sum in sales quan.

Select country from md_cust and measure sales in money in tr_ord.

The values are same as in Excel.

Select the map.

Select now sales quantity measure.

The map visualizes much better than a table. The bigger the ball is, the higher the sales are in that country.

Now select the filled map.

Filled map tells us where the markets are, meaning where are your customers. Unfortunately, Singapore is not visible.

You must see the difference if you compare this to Excel. Excel is not a bad tool at all, but Power BI is made to visualize data. Even a minor example clarifies the case. A good thing was, that you don’t have to customize the maps at all, just add visualization and select fields to be reported. Power BI reads directly the report with country names.










































