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
Anonymous
Not applicable

how to get quarter name from Quarter offset

Hi Team,

Need some details from your end... when we try to add Quarter offset -1 then the quarters will show (Oct, Nov, Dec). so i need heading name will apper Q4, same way when we try to add -2 then heading name will show Q3 like that i want all 4 quarter names .

 

Kindly check and share the measure how we can make this. waiting for your response

 

thanks

2 ACCEPTED SOLUTIONS
talespin
Solution Sage
Solution Sage

Sorry I did not understand your question.

You can get Quarter using QUARTER and FORMAT functions "Q"&FORMAT('Date'[Date], "q").

If you are looking for something else, See if this post helps

DAX for adding offset columns - days, weeks, months, quarters and years - DAX / DAX Calculations - E...

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706605965716.png

Create a measure

Quarter Name from Offset = 
VAR CurrentQuarterNumber = QUARTER(TODAY())
VAR AdjustedQuarterNumber = MOD((CurrentQuarterNumber + SELECTEDVALUE('Table'[QuarterOffset]) - 1),4) + 1
RETURN 
    SWITCH(
        AdjustedQuarterNumber,
        1, "Q1",
        2, "Q2",
        3, "Q3",
        4, "Q4"
    )

Final output

vheqmsft_1-1706606047514.png

Best regards

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706605965716.png

Create a measure

Quarter Name from Offset = 
VAR CurrentQuarterNumber = QUARTER(TODAY())
VAR AdjustedQuarterNumber = MOD((CurrentQuarterNumber + SELECTEDVALUE('Table'[QuarterOffset]) - 1),4) + 1
RETURN 
    SWITCH(
        AdjustedQuarterNumber,
        1, "Q1",
        2, "Q2",
        3, "Q3",
        4, "Q4"
    )

Final output

vheqmsft_1-1706606047514.png

Best regards

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

talespin
Solution Sage
Solution Sage

Sorry I did not understand your question.

You can get Quarter using QUARTER and FORMAT functions "Q"&FORMAT('Date'[Date], "q").

If you are looking for something else, See if this post helps

DAX for adding offset columns - days, weeks, months, quarters and years - DAX / DAX Calculations - E...

Anonymous
Not applicable

@talespin ;-

Actually what iam looking for is below

MKM_0-1705911260608.png

if you see the above Quarter 4 2023 , Quarter 3 2023 those should be automatically need to change as like  "Quarter 1: 2024 , Quarter 2: 2024, Quarter  3: 2024, Quarter 4: 2024". when we selected quarter offset,  based on this if we select quarter -1 (oct nov dec) then Q4, Quarter -2 (July aug sep) then Q3 , Quarter -3 (Apr may jun) then Q2, Quarter -4(jan, feb , mar) then Q4

 

Like wise if we use  Quarter offset 0 ( current quarter need come that is (jan 2024, feb 2024 mar 2024 ) then Q1  2024.

 

Kindly check and do the needful

thanks

Anonymous
Not applicable

Hi Team,

 

can you some one check and let us know update on the above  needed an dax 

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.