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.
Hello,
within my data table I have several nested tables.
Using if conditions I want to check for different scenarios.
E.g. if [value_column] > [value_nestedtable1] then 1 else 0
I'm accessing the data within the nested table by using List.Max([nested_table][column_in_nestedtable]).
That works, however, it slows down my report significantly.
The data within the nested tables are either numbers or dates.
Is there a better way to access the data within a nested table?
Thanks in advance,
Marco
Do your nested tables result from a join, group, or something else. Of course, if it's from grouping, you can add the Max aggregate in your group step.
--Nate
Thank you for the answer.
I think in that way I aggregate the nested table and only retrieve one value.
Actually, I want to keep the whole nested table as I need it for further calculations.
Then I have the same issue that getting data out of the nested tables slows down my report.
You could instead use
Table.AggregateTableColumn(table as table, column as text, aggregations as list) as table
and then do your comparison. So
= Table.AggregateTableColumn(TableOrPriorStepName, {{"ColumnInNestedTable", List.Max, "NewColumnName"}})
A lot of these table functions are very well optimized.
--Nate
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 |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
13 | |
9 | |
7 | |
6 |