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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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