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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Mohammadwazeri
Helper III
Helper III

How Can I Create Current Quarter, Next Quarter, & Next two Quarters Fields?

Hi,

I need to get the answer for this ASAP.

I stuck in creating current, next, & next tow quarter fields in powerbi desktop, could you please give me an idea how to create these fields using dax or any other way in powerbi.

 

Thanks

Mohammad

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Mohammadwazeri  in this case, you can follow the below approach to create 3 measures

 

1. 

current qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var curr = cyear & "Q" & cqtr
return
curr
 
2.
next1 qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var next1 = IF(cqtr=4, cyear+1 & "Q1", cyear & "Q" & cqtr+1)
return
next1
 
3.
next2 qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var next2 = IF(cqtr>=3, cyear+1 & "Q1", cyear & "Q" & cqtr+1)
return
next2
 
 
negi007_0-1632754654436.png

 

i hope it helps you




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

2 REPLIES 2
Mohammadwazeri
Helper III
Helper III

Thank you so much, it's working.

negi007
Community Champion
Community Champion

@Mohammadwazeri  in this case, you can follow the below approach to create 3 measures

 

1. 

current qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var curr = cyear & "Q" & cqtr
return
curr
 
2.
next1 qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var next1 = IF(cqtr=4, cyear+1 & "Q1", cyear & "Q" & cqtr+1)
return
next1
 
3.
next2 qtr =
var cqtr = QUARTER(TODAY())
var cyear= YEAR(TODAY())
var next2 = IF(cqtr>=3, cyear+1 & "Q1", cyear & "Q" & cqtr+1)
return
next2
 
 
negi007_0-1632754654436.png

 

i hope it helps you




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors