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, I would like to filter the list of values before I get the max value.
I have 2 tables:
In Power Query I would like to add a custom column to the date dimension table with the maximum Month available for "Actual" Scenario from the fact table.
This syntax: List.Max(#"Actuals Consolidation"[Month])
allowed me to add the maximum Month of the whole fact table table ~ 10/01/2023.
How can I add the filtering to the "Actual" Scenario, please?
When I try something like this:
= Table.AddColumn(#"Added Custom", "Custom.1", each List.Max(Table.SelectRows(#"Actuals Consolidation"[Month], each [Scenario] = "Actual")))
I get error that list cannot be converted to a table.
Solved! Go to Solution.
I would suggest to do that in Power BI DAX instead. List.Max is a potentially very expensive operation that may break folding.
if you must - specify the column name at the end.
= Table.AddColumn(#"Added Custom", "Custom.1", each List.Max(Table.SelectRows(#"Actuals Consolidation", each [Scenario] = "Actual")[Month]))
I would suggest to do that in Power BI DAX instead. List.Max is a potentially very expensive operation that may break folding.
if you must - specify the column name at the end.
= Table.AddColumn(#"Added Custom", "Custom.1", each List.Max(Table.SelectRows(#"Actuals Consolidation", each [Scenario] = "Actual")[Month]))
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 |
---|---|
13 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
6 |