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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

PowerBi

Hello everyone. 

 

I want to create a "line and clustered column chart". For column chart I want the 'Base year' data. 'base year' can be selected from the dropdown slicer for e.g. 2022,2023 etc. and for line chart data should come from 'comparison year'. The 'comparison data' should come from separte slicer just like 'base year' slicer. I have already set up Date tabel. I just want your help on how can I fetch data for selected year and show 'base year' on column chart and 'comparison year' data on line chart.

thank you in advance. 

1 ACCEPTED SOLUTION

Hi @Anonymous 
Try to download the linked file and see if it solves your issuehttps://drive.google.com/file/d/1akpurw_9pAfU2w2XHC7_STPvRVjWRm2g/view?usp=sharing 

 

Ritaf1983_0-1692523632779.png

 

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

DateSales
1/01/2023400
1/01/202425
1/01/2022200
1/01/2023100
1/01/2024150
1/01/2022125
1/01/2023300
1/01/2024164
1/01/2022159
1/01/2023154
1/01/2024148
1/01/2022143
1/01/2023138
1/01/2024132
1/01/2022127
1/01/2023121
1/01/2024116
1/01/2022111


This is my sample data. I want 2 slicers. For eg one would be 'base year' which could be any year from above and another would be 'comparison year'. I want base year data to show on bar chart and 'comparison year' data on line chart. 

 

Hi @Anonymous 
Try to download the linked file and see if it solves your issuehttps://drive.google.com/file/d/1akpurw_9pAfU2w2XHC7_STPvRVjWRm2g/view?usp=sharing 

 

Ritaf1983_0-1692523632779.png

 

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.