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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jayasurya_prud
Helper II
Helper II

Line and Clustered column chart y axis columns

HI, 

 

I am trying to build a line and clustered column chart. 

 

my data is  of two tables

 

projected_1

Year_1rates_%
201155%
201160%
201165%
201470%
201575%
201580%
201585%
201890%
201995%
2020100%
2020105%
2022110%
2023115%
2023120%
2023125%
2026130%
2027135%
2027140%
2027145%

 

 

projected_2

 

Year_2rates_%
201435%
201440%
201445%
201450%
201855%
201960%
202065%
202070%
202075%
202080%
202485%
202590%
202595%
2025100%

 

The problem is, in the  line and clustered column chart,

 

my x axis is Projected 1 - Year_1 column

 

my column y axis are avg(Projected_1[Rate_%]) & avg(Projected_2[Rate_%])

 

but when I plot it, 

 

I could see that the plot are being generated for even projected_2 records where the years doesn't listed. 

 

how deal with this?

 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @jayasurya_prud ,

 

Please combine two tables into a new table:

 

 

Table = UNION(
    SELECTCOLUMNS('projected_1',"Year",[Year_1],"rates_%",[rates_%],"Type","projected_1"),
    SELECTCOLUMNS('projected_2',"Year",[Year_2],"rates_%",[rates_%],"Type","projected_2")
)

 

 

vyadongfmsft_2-1667786211031.png

 

Create a measure to calculate average of rates:

 

Average_rates = AVERAGE('Table'[rates_%])

 

 

I think this is the result you want:

vyadongfmsft_3-1667786367454.png

 

Best regards,

Yadong Fang

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

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @jayasurya_prud ,

 

Please combine two tables into a new table:

 

 

Table = UNION(
    SELECTCOLUMNS('projected_1',"Year",[Year_1],"rates_%",[rates_%],"Type","projected_1"),
    SELECTCOLUMNS('projected_2',"Year",[Year_2],"rates_%",[rates_%],"Type","projected_2")
)

 

 

vyadongfmsft_2-1667786211031.png

 

Create a measure to calculate average of rates:

 

Average_rates = AVERAGE('Table'[rates_%])

 

 

I think this is the result you want:

vyadongfmsft_3-1667786367454.png

 

Best regards,

Yadong Fang

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.