Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello,
I have only one column of Dates and one column of Sales.
How do you built a graph with sales of 2 years on the same axis like this one :
Thanks for your help
Solved! Go to Solution.
Make sure you have selected Clustered Column Chart. Put Month on Axis, Year on Legend.
Here is a sample workbook. https://www.dropbox.com/s/ul1fj7yqzvn74xd/2%20years.pbix?dl=0
I assume you have both of these columns in 1 table. Create a second table "Calendar" and put a column of dates (same date range as your sales table) and then add a column called "Year" that just contains the year for each date. Join the date column in your Sales table to the date column in your calendar table. Then put the Year column from the calendar table on Axis to get the result. You can also add a column for Month, Quarter, Week, Day Name etc to extend your calendar table so it becomes more useful for different reporting needs.
Hi,
I still have two issues:
What did I miss?
Make sure you have selected Clustered Column Chart. Put Month on Axis, Year on Legend.
Here is a sample workbook. https://www.dropbox.com/s/ul1fj7yqzvn74xd/2%20years.pbix?dl=0
Hi MAllington,
Thanks a lot!
That works!
It might be more of a workaround, but it worked for me when I was having the same issue as you.
You could also create three tables:
Then create some relations between the dates in sales2013 and sales2014 and your date table. Like this:
Make sure the dates in the date-table are of a unique value, so you can properly filter on them.
Then create a barchart, insert the total € of sales 2013 and sales 2014 in the value-field. And the month_name (from the date-table) in the axis-value.
After that you could create a slicer to filter on year, month, quartile or whatever you want to filter on.
User | Count |
---|---|
100 | |
66 | |
58 | |
47 | |
46 |