How to Use the Power BI DAX function QUARTER

The `❰date❱` parameter refers to the date for which you want to find the corresponding quarter. This can be a reference to a date column in your dataset or a static date entered directly into the function.


Let's look at a few examples to better understand how to use the QUARTER function in Power BI.

Example 1: Using a Date Column

Suppose you have a dataset with a Date column, and you want to create a new column that shows the quarter for each date. You can use the following formula:

This formula creates a new column called Quarter, which calculates the quarter based on the values in the Date column.

Example 2: Using a Static Date

If you want to find the quarter for a specific date that is not in your dataset, you can use the QUARTER function with a static date. For example, if you want to find the quarter for January 1st, 2022, you can use the following formula:

This formula returns the value 1, indicating that January 1st, 2022 is in the first quarter of the year.

Additional Tips

Here are some additional tips to keep in mind when using the QUARTER function in Power BI:

- The QUARTER function returns a numeric value ranging from 1 to 4, representing the four quarters of the year.

- If the date parameter is not in a valid format, the function will return an error.

- You can combine the QUARTER function with other DAX functions to perform more complex calculations. For example, you can use the SUMX function to calculate the total sales for each quarter.

The QUARTER function is a useful tool for working with dates in Power BI. By using this function, you can quickly and easily find the quarter corresponding to a given date. Remember to follow the syntax for the function and keep in mind the additional tips to ensure accurate results.

Power BI DAX Training Courses by G Com Solutions (0800 998 9248)

Upcoming Courses

6-8 Jun 23 (London or Online)
8-10 Aug 23 (London or Online)
24-26 Oct 23 (London or Online)

Contact Us


    Your Name (required)


    Email (required)


    Training Course(s)

    Your Message

    Upload Example Document(s) (Zip multiple files)