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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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