馃攳
Aging report in Power BI - YouTube
Channel: unknown
[1]
- Today, we are gonna build
an aging report in Power BI.
[5]
So first of all, what is an aging report?
[8]
An aging report is a way to
see when invoices are due
[11]
from different customers.
[14]
You can see, this is an example,
[17]
we have five different customers,
[19]
they have different invoices
[20]
that are due at different times,
[22]
and we can see what time
the different invoices
[27]
or the sum of the
different invoices are due.
[31]
The task we'll go through is
we'll first describe the task,
[34]
of course, that is create
an aging report in Power BI,
[40]
connect to data source and move
data to the data warehouse;
[45]
that is already done.
[47]
It would be too long of a video
[49]
if I should also do that now,
[53]
build a dataset view
in the data warehouse,
[56]
then we will build a dataset in Power BI
[59]
and then we'll build the Power BI report.
[62]
So to the view.
[68]
This is a standard data...
[70]
Oh, this is a Snowflake data warehouse.
[73]
As you can see, i have
already written the view.
[80]
It is a little more than a than 60 rows.
[85]
The most important thing is
that as you can see here,
[88]
days till payment,
[90]
if it is less than zero,
then we know it's overdue.
[93]
If it's less than 30, then we know
[97]
that it is between zero
and 30 days and so forth.
[101]
We will use that later.
[103]
So we will create the view.
[108]
The view is called aging.
[117]
And now we got a view.
[121]
So connect to the view.
[125]
Now we are connecting
to the data warehouse.
[130]
We will find the view
that we just created.
[140]
So you can either use
import or direct query.
[144]
Import means that you are moving the data,
[147]
all the data from Snowflake into Power BI
[151]
and direct query means
that every time you feel so
[155]
or you do anything with the data,
[157]
you will go and ask
Snowflake to renew your data.
[161]
Usually, as a rule of thumb,
if you have a large amount
[164]
of data like a really
large amount of data,
[166]
you will choose direct query,
[168]
and also, if you need
to do some complex thing
[171]
that only Power BI can do,
then you have to choose import.
[176]
In this case, we have very
little amount of data.
[179]
So we will just use import.
[187]
And now to create the dataset.
[191]
First of all, we need to set everything
[196]
to the right data types.
[199]
So as you can see, this year
has chosen a decimal number,
[202]
but it should be a whole number.
[205]
So transform data type, whole number.
[212]
Days till payment, that
is also a whole number.
[221]
This is also a whole number.
[242]
And that's it.
[243]
Close and apply.
[248]
And now Power BI is pulling
all the data from Snowflake.
[261]
So now it's time to create the dataset,
[264]
the Power BI dataset.
[281]
So there's a lot of cleaning up to do.
[283]
What we're doing here is
that we are making everything
[286]
a lot easier to work with when
we are building the report.
[289]
We are removing a lot of the
rows that are not necessary,
[294]
and we are formatting and
we are changing data types
[300]
when we need to.
[301]
So first this one,
[304]
this is invoice ID, don't summarize.
[312]
And height.
[316]
Invoice date, it is a data
type, so this is correct,
[319]
but we want a better format.
[321]
We will choose the ISO
format, year, month, date.
[329]
We will also do this here.
[337]
There we go.
[340]
Days till payment, it doesn't
make sense to sum them,
[344]
maybe we could say this
should be an average,
[347]
but in this case, we
will just not summarize.
[356]
Sort.
[358]
This is definitely not a summarize,
[360]
but we will hide this one
[367]
and I'll come back to
why I added this one.
[370]
This one here, again,
an ID, don't summarize.
[388]
Again.
[391]
Don't summarize.
[394]
And in this case, we won't
need this one in this report.
[400]
Total invoice.
[403]
This is a currency.
[407]
It is Euro.
[459]
And to make everything a bit more pretty,
[461]
we will put all the dates in a folder.
[484]
And that's it.
[490]
Save everything.
[498]
So now we got a beautiful dataset,
[501]
and now we can build the report.
[503]
We will just create a simple
matrix, aging description.
[512]
We will put this one in the column,
[515]
customers at the row.
[525]
And you can see I made a mistake.
[544]
So now we have invoice in total.
[558]
To make everything a bit
more viewable, we can...
[565]
Actual size.
[568]
And as you can see, everything
is in the wrong order
[572]
and we would like it to
be in a better order.
[574]
So that is why I created the order by.
[577]
So we will go in,
[580]
choose this one, column two,
sort by column, aging sort.
[590]
And that's it.
Most Recent Videos:
You can go back to the homepage right here: Homepage





