Forum Discussion
Column Chart - Keeping X Axis Static
- 4 years ago
Hello,
The only way I've managed it is by creating a new table with a list of all of your categories. Link this to the original table, use that as the axis on the chart and make sure 'show items with no data' is ticked.
You'd then need to change your measures to:
Individual = CALCULATE(SUM(Sheet1[Count]),ALLEXCEPT(Sheet1,Categories[Categories],Sheet1[User])) Group = CALCULATE(SUM(Sheet1[Count]),ALLEXCEPT(Sheet1,Categories[Categories]))Hope that's alright!
Hello,
The only way I've managed it is by creating a new table with a list of all of your categories. Link this to the original table, use that as the axis on the chart and make sure 'show items with no data' is ticked.
You'd then need to change your measures to:
Individual = CALCULATE(SUM(Sheet1[Count]),ALLEXCEPT(Sheet1,Categories[Categories],Sheet1[User]))
Group = CALCULATE(SUM(Sheet1[Count]),ALLEXCEPT(Sheet1,Categories[Categories]))
Hope that's alright!
Thank you, that seems to have done the trick.
Also, just in case anyone else may find the following helpful: I originally ran into some issues with this solution because in my actual dataset, Category contains nulls so PBI was forcing a many-to-many relationship, which caused issues. Once I replaced the nulls with a different value everything seemed to work.