Forum Discussion
Stacked bar with line
I have a scenario on migration report, I need to create a stacked bar chart along with Line visual. I have region, sales, target, state columns, now need to show a visual stacked bars with target line, isit possible in pbi?
You can use the built-in Line and stacked column chart in Power BI. Put your dimension (for example State) on the X-axis, put Sales in the column values with Region on the legend so each column stacks by region, and put Target on the line y-axis.
Power BI does not ship a horizontal stacked bar with a line overlay out of the box, so if you specifically need horizontal orientation you would need a custom visual from AppSource. In most sales-vs-target reports the vertical Line and stacked column chart is what people use.
If it solved your issue, please mark it as the accepted solution and give it a kudos.
Best regards,
Shai KarmaniYou can use the native column and line combo chart.
Hi Rakeshboga1,
You can use Power BI native visual - Line & stacked column chart. There's no native visual that has bar and line chart combine, if this is the requirement to be met then you can use custom visuals like Deneb Custom Visual which is free to use.
Considering the columns you will be using (Region, Sales, Target, State columns), below is the expected output using sample data -
1. Line & stacked column chart - Non-stacked columns showing all the states by region as legend, preferred approach.
2. Line & stacked column chart - Stacked columns by region, sates as legend which will make the visual clumsy when there are more states.
3. Deneb Custom Visual - If the requirement has to be stacked bar and line chart, you can use Deneb visual.
💡 Helpful? Give a Kudos 👍 — keep the community growing
✅ Solved your issue? Mark as Solution ✔️ — help others find it faster
Best regards,
Rupasree Achari | BI & Fabric Analytics Engineer
5 Replies
- danextian
Super User
You can use the native column and line combo chart.
- Rupa01
Solution Sage
Hi Rakeshboga1,
You can use Power BI native visual - Line & stacked column chart. There's no native visual that has bar and line chart combine, if this is the requirement to be met then you can use custom visuals like Deneb Custom Visual which is free to use.
Considering the columns you will be using (Region, Sales, Target, State columns), below is the expected output using sample data -
1. Line & stacked column chart - Non-stacked columns showing all the states by region as legend, preferred approach.
2. Line & stacked column chart - Stacked columns by region, sates as legend which will make the visual clumsy when there are more states.
3. Deneb Custom Visual - If the requirement has to be stacked bar and line chart, you can use Deneb visual.
💡 Helpful? Give a Kudos 👍 — keep the community growing
✅ Solved your issue? Mark as Solution ✔️ — help others find it faster
Best regards,
Rupasree Achari | BI & Fabric Analytics Engineer - Shai_Karmani
Super User
You can use the built-in Line and stacked column chart in Power BI. Put your dimension (for example State) on the X-axis, put Sales in the column values with Region on the legend so each column stacks by region, and put Target on the line y-axis.
Power BI does not ship a horizontal stacked bar with a line overlay out of the box, so if you specifically need horizontal orientation you would need a custom visual from AppSource. In most sales-vs-target reports the vertical Line and stacked column chart is what people use.
If it solved your issue, please mark it as the accepted solution and give it a kudos.
Best regards,
Shai Karmani - v-abhinavmu
Community Support
Hi Rakeshboga1,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to Rupa01 & danextian & Shai_Karmani for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
- v-abhinavmu
Community Support
Hi Rakeshboga1,
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you