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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DebbieE
Community Champion
Community Champion

Adding two different measures and axis Descriptors into one visual (Column chart)

We have the following visual that someone wants to add into Power BI

MixedChart.png

we have a problem here because

X Axis uses Quarter

Then uses Financial Year for the second half of the visual

 

Y Axis (The measure)

Uses Sum(Total Facts) 

And then for the next section uses Average(Future Facts)

 

Its basically two visuals merged into one.

Just on the offchance. Does anyone have an idea how this could be accomplished in Power BI? 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @DebbieE 

 

You may add a disconnected table to have all X-axis values similar to below, 

vjingzhang_0-1683865731123.png

Then create a measure similar to 

result =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Table'[Year] ) = "21-22",
        CALCULATE (
            SUM ( 'FactTable'[value] ),
            'FactTable'[Year] = SELECTEDVALUE ( 'Table'[Year] ),
            'FactTable'[Quarter] = SELECTEDVALUE ( 'Table'[Quarter] )
        ),
    SELECTEDVALUE ( 'Table'[Year] ) = "22-23",
        SWITCH (
            TRUE (),
            SELECTEDVALUE ( 'Table'[Quarter] ) IN { "Q1", "Q2" },
                CALCULATE (
                    SUM ( 'FactTable'[value] ),
                    'FactTable'[Year] = SELECTEDVALUE ( 'Table'[Year] ),
                    'FactTable'[Quarter] = SELECTEDVALUE ( 'Table'[Quarter] )
                ),
            CALCULATE (
                AVERAGE ( 'FactTable'[value] ),
                'FactTable'[Year] = SELECTEDVALUE ( 'Table'[Year] )
            )
        ),
    CALCULATE (
        AVERAGE ( 'FactTable'[value] ),
        'FactTable'[Year] = SELECTEDVALUE ( 'Table'[Year] )
    )
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Its looking ok but I dont want to have to hard code the years into the measure. Is there any way that I could change this so I dont have to hard code the years in because obviously this does change and the further we go the more years will have to be hard coded

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors