Forum Discussion
harirao
Post Prodigy
2 years agoSingle BAR Graph for Comparing Previous Year each months V/s Current Year Each Months
Hi Team I want to create a bar chart were i have do comparison Previous Year Months Vs Current Year months in same Bar graph, able to create two separate graphs as below, But unable to creat...
Musadev
Resolver III
2 years agoHi harirao
You can add both scenarios in a single visual by adding both measures to a stacked column chart.
Add the Date variable in the X-Axiz and 2 measures in the Y-Axis and you will get the results as shown below.
Dax Measure for the Last year's sales and this year's Sales are here. map and link it to your data. Thanks
Sales Amount = SUMX ( Sales, Sales[Quantity] * Sales[Net Price] )
Sales Amt Last Year =
CALCULATE( Sales[Sales Amount],
SAMEPERIODLASTYEAR(Sales[Order Date])
)
Good luck for the learning and if it helps mark it as a Solution for your Query. Thanks