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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Some13lse
Frequent Visitor

Bridge table containing YearQuarter and Previous YearQuarter

Hi all,

I would like to create a bridge table consisting of a column with YearQuarter and a second column containing the same YearQuarter or the previous YearQuarter.

YearQuarterSameAndPreviousYQ

2022Q4

2022Q3

2022Q4

2023Q4

2023Q1

2022Q4

2023Q1

2023Q1

...

....
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Some13lse ,

Please try to create table with below dax formula:

Table =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 01, 01 ), DATE ( 2023, 10, 23 ) ),
    "Year Quarter",
        YEAR ( [Date] ) & "Q"
            & QUARTER ( [Date] ),
    "Previous Year Quarter",
        YEAR ( [Date] ) - 1 & "Q"
            & QUARTER ( [Date] )
)

vbinbinyumsft_0-1698043698994.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

2 REPLIES 2
Anonymous
Not applicable

Hi @Some13lse ,

Please try to create table with below dax formula:

Table =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 01, 01 ), DATE ( 2023, 10, 23 ) ),
    "Year Quarter",
        YEAR ( [Date] ) & "Q"
            & QUARTER ( [Date] ),
    "Previous Year Quarter",
        YEAR ( [Date] ) - 1 & "Q"
            & QUARTER ( [Date] )
)

vbinbinyumsft_0-1698043698994.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please don't.  Add these columns to your regular Calendar table instead.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.