Forum Discussion
PowerBuddy1
4 years agoFrequent 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 Curr...
AllisonKennedy
4 years agoCommunity 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.
PowerBuddy1
4 years agoFrequent Visitor