About This Artical In Power Bi

In Power BI, we can achieve drill-down functionality. Power BI facilitates Year-QTY-Month drill down automatically for the columns which have the Date data type.

Now, there are some situations in which we do not have a Date Column available in our dataset. At that time, what to do to achieve the drill down?

This article is the solution for this.

Let’s get started!

We have the following types of datasets. We have columns,

Year
Qty
Month
sales amount

power bi

Now, let us load the data in Power BI.

Step 1 :

Go to Home and click on “Transform Data”.

power bi

 

Step 2 : 

Create a duplicate column of the Month and rename it as “Month-Sort”.

power bi

 

Click on “Close and Apply”.

Step 3:

Create a calculated column using the following formula.

SortNumber = SWITCH(Table1[Month-Sort],”JANUARY”,01,”FEBRUARY”,2,”MARCH”,3,”APRIL”,4,”MAY”,5,”JUNE”,6,”JULY”,7,”AUGUST”,8,”SEPTEMBER”,9,”OCTOBER”,10,”NOVEMBER”,11,”DECEMBER”,12)
Step 4:

Select the Month column.

From the ribbon, select Modelling and from the Sort by Column, select “SortNumber”.

Step 5:

Now, let’s test the result!

Top Level – (Year)

First Level – (Qty)

 

 

 

 

 

 

Second Level – (Month)

For any Help or Queries Contact us on info@crmonce.com or +919014146800

https://www.crmonce.com/power-bi/

We have started a new online retail store    Please Visit