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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
PowerBuddy1
Frequent Visitor

Chart with Combinations

How can I create a chart which shows below - 

 

1) Single Bar on left showing Last Year - Year to date Sales (based on which year is selected from year slicer)

2) Single Bar on tright showing Current Year - Year to date Sales (based on which year is selected from year slicer)

3) In between line chart showing month wise Sales (based on which year is selected from year slicer)

 

Capture.PNG

 

Please advise.

5 REPLIES 5
mahoneypat
Microsoft Employee
Microsoft Employee

This chart could be created with the Deneb visual by using "hconcat" to combine the 3 charts into one visual.

Getting Started | Deneb (deneb-viz.github.io)

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat can you pls advise how I can achieve it using deneb chart?

PowerBuddy1_0-1651403018233.png

 

AllisonKennedy
Community Champion
Community Champion

@PowerBuddy1  This will look different than your picture, because the scale for month will be much smaller than the YTD. What does your data model look like with relationships? You will need a DimDate table for this one: https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html 

 

Then you can create measures to change between the selected year and last year:

 

Total Sales = SUM( Sales[Sales] )

YTD Sales = CALCULATE ( [Total Sales], DATESYTD( dimDate[Date] ) )

Prior YTD Sales = CALCULATE( [YTD Sales], DATEADD( dimDate[Date], -1, YEAR) )

 

Then use them in a column chart with Month. 

 

I would recommend a card visual for the YTD totals.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thanks @AllisonKennedy but the client requires it in a chart not slicer based.

 

Any idea?

 

With this it gives me YTD and YTD LY per month.

 

Whereas it needs to be consolidated two bars at the end and in the center a line chart for MTD values.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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