Having an issue, so i work for an airline, and trying to take the sum of all passengers (Industry PAX), my formula works at the macro level, but when you get down to specific markets it starts to mess up.
Example. New York to Argentina. There are 3 airports in New York, Some airlines fly to one, others fly to the rest. Lufthansa does not really fly that specific route, so when selecting Lufthansa the Industry total changes to only Lufthansa booking. Which would be EWR (airport code) and ignores the other 2 airports, even though they are selected in the slicer.
It's a simple-ish issue but hard to explain.
So I need my measure to bring in JFK and LGA data as well even though Lufthansa does not fly there
IND PAX = CALCULATE(sum('table'[pax]),ALL('table1'[JV carrier]))
If i ignore the airport code slicer i get the wrong answer
My desired outcome would be when selecting more than one airport code, to gauge each airline evenly compared to the industry total
It is not clear about your example.
It is better to share a example(not realistic) dataset and expected result.
table2->air company information
relationships among tables
which columns added in the slicer
which slicer level to select, then what should be the result
Thank you for the replies, I have created a sample data set and recreated the issue, i am wishing to correct. I need the IND PAX number to not change when selecting the different carriers.
@MrNoob thanks for providing the data. I am with @v-juanli-msft above although I have no issue with realistic data (actually I think this is better). What you have provided is not a good approach, especially in this case. This is a non-trivial problem to be solved. There is not 1 easy magic formula that you are overlooking - it is a complex problem that will require good table design as well as (likely) some tricky DAX. To solve the issue, you will need to set up tables like specified by @v-juanli-msft above. You will also need to set up a matrix showing what your formula does now, and what numbers you expect to see. It is often useful to show a working example in Excel to clearly desccribe the problem. You know what you want but we don't, so you need to help us help you.
In continuation to @MattAllington email, there is great blog by Greg, please take a look at it.
If you post a realistic sample DB with non sensitive data, I will take a look for you.
Check out new user group experience and if you are a leader please create your group!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Check out how to claim yours today!
Test your skills now with the Cloud Skills Challenge.