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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Quarter based on predefined date range

I have a reference table room for Quarter. In my main table (table 1) I have to get the quarter next to the date column.

For example

the date of table 1 is 20-3-2019 then quarter should get Qtr 1 2019. So it is to check all the rows and give the quarter.

Start dateEnd dateroom
16-01-201915-04-2019Qtr 1 2019
16-04-201915-07-2019Qtr 2 2019
16-07-201915-10-2019Qtr 3 2019
16-10-201915-01-2020Qtr 4 2019
16-01-202030-04-2020Qtr 1 2020
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

You can  create a column for Quater in current table  with below code

 

 Get_Quater = "QTR " & QUARTER(Quater_data[Start date]) &" "& YEAR(Quater_data[Start date] )
 
Screenshot for your reference
 
Samarth_18_0-1626092775678.png

 

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

You can  create a column for Quater in current table  with below code

 

 Get_Quater = "QTR " & QUARTER(Quater_data[Start date]) &" "& YEAR(Quater_data[Start date] )
 
Screenshot for your reference
 
Samarth_18_0-1626092775678.png

 

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors