Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
anandprakashnm
Frequent Visitor

Fiscal year change with Interactive drill down

hello,

 

My Fiscal year is from Serptember to August and i am creating a dashboard where i want to change fiscal year and rertain drill down capabilities by quarter and month.

 

Help!!

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@anandprakashnm

 

You can create columns of your FiscalYear, FiscalQuarter and FiscalMonth with following formulas.

 

FiscalYear = 
IF (
    MONTH ( Table1[Date] ) <= 8,
    YEAR ( Table1[Date] ) - 1,
    YEAR ( Table1[Date] )
)
FiscalMonth = 
IF (
    MONTH ( Table1[Date] ) < 9,
    MONTH ( Table1[Date] ) + 4,
    MONTH ( Table1[Date] ) - 8
)
FiscalQuarter = 
ROUNDUP ( [FiscalMonth] / 3, 0 )
FiscalMonthName = 
VAR TempFiscalDate =
    DATEVALUE ( Table1[FiscalMonth] & "/1/" & Table1[FiscalYear] )
RETURN
( FORMAT ( TempFiscalDate, "mmm" ) )

Fiscal year change with Interactive drill down_1.jpg

 

 

Then create a new table with following formula and select FiscalMonthName to make it sorted by FiscalMonth column.

Table = 
SUMMARIZECOLUMNS ( Table1[FiscalMonthName], Table1[FiscalMonth] )

Fiscal year change with Interactive drill down_2.jpg

 

In the canvas, select the new created columns as below and enable drill down.

Fiscal year change with Interactive drill down_3.jpg

 

Best Regards,

Herbert

View solution in original post

4 REPLIES 4
v-haibl-msft
Employee
Employee

@anandprakashnm

 

You can create columns of your FiscalYear, FiscalQuarter and FiscalMonth with following formulas.

 

FiscalYear = 
IF (
    MONTH ( Table1[Date] ) <= 8,
    YEAR ( Table1[Date] ) - 1,
    YEAR ( Table1[Date] )
)
FiscalMonth = 
IF (
    MONTH ( Table1[Date] ) < 9,
    MONTH ( Table1[Date] ) + 4,
    MONTH ( Table1[Date] ) - 8
)
FiscalQuarter = 
ROUNDUP ( [FiscalMonth] / 3, 0 )
FiscalMonthName = 
VAR TempFiscalDate =
    DATEVALUE ( Table1[FiscalMonth] & "/1/" & Table1[FiscalYear] )
RETURN
( FORMAT ( TempFiscalDate, "mmm" ) )

Fiscal year change with Interactive drill down_1.jpg

 

 

Then create a new table with following formula and select FiscalMonthName to make it sorted by FiscalMonth column.

Table = 
SUMMARIZECOLUMNS ( Table1[FiscalMonthName], Table1[FiscalMonth] )

Fiscal year change with Interactive drill down_2.jpg

 

In the canvas, select the new created columns as below and enable drill down.

Fiscal year change with Interactive drill down_3.jpg

 

Best Regards,

Herbert

How to do this? What is FiscalMonthName =???? and also VAR TEMPFISCALDATE??

 

FiscalMonthName =
VAR TempFiscalDate =
    DATEVALUE ( Table1[FiscalMonth] & "/1/" & Table1[FiscalYear] )
RETURN
( FORMAT ( TempFiscalDate, "mmm" ) )

@anandprakashnm

 

I created several calculated columns here. FiscalMonthName is a new created column. For VAR, we can define many variables and they are local to the expression in which you define them.

I’ve also uploaded my Power BI file here for reference.

 

Best Regards,

Herbert

Thanks. It helped.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.