Power BI: define quarter based on months
Sometimes I have a month table to do a trend chart but I need also to define the quarter, so normally I have this table:
To define the quarter, I will add a new column:
![]() |
![]() |
And put this formula:
FORMAT([argument],"\QTR YYYY-Q")
NOTE:
- For the number (1, 2, 3, 4), change \QTR YYYY-Q by Q
- For a short name (Q1, Q2, Q3, Q4), change \QTR YYYY-Q by \QQ
- “month” is the name of my column “month” so if you have a different name, just change it
And I will get this result:
Next step, which is optional, I will change the name of the column by “Quarter”, in this case, in the formula, just modify “column” by “quarter”:
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...








