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
sam_hoccane
Helper I
Helper I

Dynamic Fiscal Year

Hello Community, 

 

Woould you please help me to determine how to create column that can Identify Current fiscal Quater. I have tried with this formula but it is not working.  ( I am donot have dates table)

IF ( Today () >= DATE(2022,11,01) && Today() <=DATE (2023,01,31) , "Q1" ,"")
IF ( Today () >= DATE(2023,02,01) && Today() <=DATE (2023,04,30) , "Q2" ,
IF ( Today () >= DATE(2023,05,01) && Today() <=DATE (2023,07,31) , "Q3" ,
IF ( Today () >= DATE(2023,08,01) && Today() <=DATE (2023,10,31) , "Q4" ,
"NA" ))))

Our Fiscal Quarter  starts from:
Q1 : Nov to Jan
Q2: Feb to April
Q3: May to  July
Q4: Aug to oct

Expected Results :
Due Date (M/D/Y)Current Quarter 
01/19/2023Q1
10/31/2022Q1
11/22/2022Q1
12/15/2022Q1
02/17/2023 
07/18/2023 
09/18/2023 
10/25/2023 
11/14/2023 

Thankyou in Anticipation.
1 ACCEPTED SOLUTION

They've also recently released custom templates:
https://www.sqlbi.com/articles/customizing-date-and-time-intelligence-templates-in-bravo-for-power-b...

 

@sam_hoccane, I'd strongly recommend using a date table.
https://radacad.com/do-you-need-a-date-dimension

 

One way to define your fiscal quarter:

 ROUNDDOWN ( MOD ( MONTH ( [Date] ) + 1 , 12 ) / 3, 0 ) + 1

 

View solution in original post

5 REPLIES 5
ppm1
Solution Sage
Solution Sage

Definitely agree on adding a Date table. Either way, you can easily create your FQ column with an expression like this:

 

FQ = "Q" & QUARTER(EOMONTH(Table[DueDate], 2))

 

Replace Table[DueDate] with your actual Table[Column]

 

Pat

Microsoft Employee

Nice! Much cleaner than what I proposed.

djurecicK2
Super User
Super User

Hi @sam_hoccane ,

 I would recommend using a date table like the one below which you can adjust to fit your fiscal calendar:

https://www.sqlbi.com/articles/reference-date-table-in-dax-and-power-bi/

 

They've also recently released custom templates:
https://www.sqlbi.com/articles/customizing-date-and-time-intelligence-templates-in-bravo-for-power-b...

 

@sam_hoccane, I'd strongly recommend using a date table.
https://radacad.com/do-you-need-a-date-dimension

 

One way to define your fiscal quarter:

 ROUNDDOWN ( MOD ( MONTH ( [Date] ) + 1 , 12 ) / 3, 0 ) + 1

 

Thankyou all!

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.

Top Solution Authors