Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have an Excel File with a list of aircraft with the main characteristics of each one (airline, model, manufacturer, age...). I want to identify, per model, which is the position of each aircraft per age: e.g. for all A320 if aircraft X is 19.8 years old, how many aircraft are older than it (that is the order of age filtered by model). I wouldn't like to use an auxiliary table as I want to further elaborate on this table.
When it comes to calculate the number of aircraft per model I use the following formula:
Aicraft per Model = CALCULATE(COUNT(Table 'Aicraft Name'), ALLEXCEPT ( Table, Table 'Aicraft Model'))
And it works, but I do not know how to calculate the next step, that would be the number of aircraft within the list that are older than the row/aircraft that is evaluated. I have tried the following without success:
Aicraft Age Order = CALCULATE(COUNT(Table 'Aicraft Name'), FILTER( ALLEXCEPT ( Table, Table 'Aicraft Model') , Table 'Aicraft Age' > Table 'Aicraft Age' ))
Could someone help me with this? Thank you very much!
Chocapsuro
Solved! Go to Solution.
@Chocapsuro Try:
Aircraft Older Than Measure =
VAR __Model = MAX('Table'[Aircraft Model])
VAR __Age = MAX('Table'[Aircraft Age])
VAR __Table = FILTER(ALL('Table'),[Model] = __Model && [Aircraft Age] > __Age)
RETURN
COUNTROWS(__Table)
@Chocapsuro Try:
Aircraft Older Than Measure =
VAR __Model = MAX('Table'[Aircraft Model])
VAR __Age = MAX('Table'[Aircraft Age])
VAR __Table = FILTER(ALL('Table'),[Model] = __Model && [Aircraft Age] > __Age)
RETURN
COUNTROWS(__Table)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
6 | |
5 |
User | Count |
---|---|
17 | |
14 | |
10 | |
9 | |
6 |