Forum Discussion
steveorme69
8 years agoHelper I
Sort in Bar Chart
Sorry as I'm sure this is a really quick fix but how do you simply change the order of a Bar Chart. I want to show Income before Costs in a bar chart but Power BI sorts it alphabetically. ...
- 8 years ago
All working now !
Sorry I'd put cost rather than costs in the formula.
Really appreciate your help..............cheers
MFelix
8 years agoSuper User
Hi steveorme69,
If you have the values of Income and Cost in the same column create a measure for each one something like:
Cost = CALCULATE ( SUM(Table[Value]); Table[Type] = "Cost") Income = CALCULATE ( SUM(Table[Value]); Table[Type] = "Income")
Then just add the measure or columns in the order you want in your chart. In the example below I'm using columns but it also works with measures as I said:
Regards,
MFelix