How to find json link

When we navigate a website sometimes we come across web pages that contain a set of KPI and very interesting numerical indicators that we would like to exploit.

For example if we connect the of the 2014 World Cup statistics page we find a number of very interesting information that maybe we’d like to use . This type of information , however, can not be used directly as a table as well as on PowerPivot because its format is not a table:

 

Continua a leggere

Annunci

PowerPivot import Web/Json page

Often you happen to find online a range of data and information that we are interested to import directly into our PowerPivot models .

Of course, the simplest solution would be to write everything by hand , but of course would require much time and effort .

But we can get help from power queries to overcome this problem . at this point , however, we distinguish two types of data :

  • Table directly exposed on a website , we think , for example, a table of wikipedia
  • Table instead exposes a result deriving makes a json file

We face two types separately

 

Continua a leggere

Dax Tips and Tricks: Divide vs Divide

An interesting function on DAX si DiVIDE.

Un interessante funzione che pochi conoscono e sfruttano in DAX è DIVIDE. It often happens that when you create a measure in dax , especially if you take advantage of the time intelligence you want to create delta and Delta % Measure.

Normally a person would write , to make a Delta % vs PY CY , the following formula :

Delta % CY vs PY := ([AMount CY] -[Amount PY]) / [Amount PY]

What usually happens is the abscence of py data, dax not handle in automatic a value divide by zero  and this is what happen:

dax.PNG

A simple solution can be use the if statement:

if(isblank([amount py]);0;formula).

This Formula is very inefficient for you and for the model, you have to use this:

Delta % CY vs PY:=divide([AMount CY] -[Amount PY];[Amount PY];0)

In automatic way Dax control if it’s possible to do the division, if isn’t possible then:

  • insert blank value if i don’t insert nothing in the formula
  • Insert specific value ( in our example the zero value)