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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
JS
Helper II
Helper II

Flagging Next Quarter on my DateTable

Hello all. 

 

I am trying to flag out the next quarter date based on TODAY() function. I am able to flag out current Year and current Quarter based on the query below. 

 

First i have a measure to capture current Quarter and Current Year using the following: 

 

CurrentYear = YEAR(TODAY())
CurrentQuarter = ROUNDUP(MONTH(TODAY())/3,0)
 
Then to flag my current Datetable, i added 2 additional columns
 
Current Quarter Flag = IF(ROUNDUP(MONTH('Date'[Date])/3,0) = [CurrentQuarter],1,0)
Current Year Flag = IF(YEAR('Date'[Date]) = [CurrentYear],1,0)
 
I am trying to flag out the next Quarter on my datetable, but i can't seem to wrap my head on how I can go about getting the column out. 
 
Any help would be great!! 
 
Thank you! 
JS
 
1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @JS 

 

Try this blog post.

https://community.powerbi.com/t5/Community-Blog/Relative-Date-Dimension/ba-p/779039

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @JS 

 

Try this blog post.

https://community.powerbi.com/t5/Community-Blog/Relative-Date-Dimension/ba-p/779039

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

@Mariusz  Thank you so much for the article that you have written. This works and created much more dimension on my reports. 

 

Thanks again! 

JS

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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