Hello! I'm building a dashboard to show the unit cost of Airlines for a school project. I created an index table to show which Cost Category are driven by which Operation Statistics.
Here is my measure : Cost/OpStat = DIVIDE('Cost'[Amount measure],'OpStat'[OpStat full Yr],0)
When I apply this measure into a bar chart, with Airline as the Axis, filtering Cost Category = Aircraft Rent. I expect the highlighted bar to represent "Aircraft Rent of Airline AA, divided by AA's No. of aircraft". But it turns out, that bar represents the "Aircraft Rent of Airline AA, divided by all Airline's OpStat (No. of Staff+No. of aircraft+Available Seat Kilometres+...)"
Here are the relations of my table.
Any experts know what have gone wrong? Thanks in advance! The file can be retrieved here PowerBI debug
Here is my measure : Cost/OpStat = DIVIDE('Cost'[Amount measure],'OpStat'[OpStat full Yr],0)
When I apply this measure into a bar chart, with Airline as the Axis, filtering Cost Category = Aircraft Rent. I expect the highlighted bar to represent "Aircraft Rent of Airline AA, divided by AA's No. of aircraft". But it turns out, that bar represents the "Aircraft Rent of Airline AA, divided by all Airline's OpStat (No. of Staff+No. of aircraft+Available Seat Kilometres+...)"
Here are the relations of my table.
Any experts know what have gone wrong? Thanks in advance! The file can be retrieved here PowerBI debug