Forum Discussion
Duplicate PivotChart Functionality
- 9 years ago
It is impossible to give "exact steps" without sample data.
Can you provide a screenshot of your underlying data structure? Below is the structure you will need to create to get three lines in a chart that represent individual calendar years:
Month+Date Key | 2012 data | 2013 data | 2014 data | Date Axis Sort Order
Jan 1 x x x 1
Jan 2 x x x 2
Jan 3 x x x 3
...
etc.
Then you would create a line chart and put the Month+Date Key as the axis. Sort the Month+Date Key field by the Date Axis Sort Order column (under the Modeling tab I believe). Then add the 2012, 2013, and 2014 fields to your Values area and they will share the common axis but each represent a separate year.
If you want to only display 1 year at a time and have a slicer for year, then the table structure needs to be different, or you have to do some more complex DAX which is probably not a good choice given your challenges so far.
Thanks DKay for the quick response. I apologize for being short on details. I have a screen shot and will explain the need as I understand it.
Data is entered or imported from an Excel sheet and displayed using an Access query called Variable Query. Then, in Access 2010, the user is able to click on View-PivotChart View. to display the chart shown above. The user can then drag any of the fields at the top to the bottom to add/combine data points in the view. One of the duplication issues seems to be getting multiple lines to display based on one date column. The user can drag down Date by Month and compare three years on separate lines. Then the user can view year-month-day. I get the year-month-day capabilities by using levels in PowerBI, but still can't get the individual years comparison to work.
This is a somewhat non-technical user, which is the reason that he likes the drag-and-drop approach. I can sell him on check/uncheck instead as long as the same general functionality can be provided. Do these details help?
One additional detail is that the user can also filter by clicking on the bottom label after it has been added to the pivot chart.