Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This first formula works, but I am trying to remove the hard column reference ([FY24 Original Baseline]) to a dynamic reference from a varible:
List.Sum(Table.SelectRows(tbl_DSBaselines,
(InnerTable) => InnerTable[FinancialID] = [FinancialID] and
InnerTable[Baseline Version] = Text.Combine({FiscalYear,"Q0"}))[FY24 Original Baseline]
)
Does not work (returns a List) and I cannot figure out the correct syntax to accomplish this. Table.Column is clearly not correct.
FiscalYearBaseline is the variable containing the column name I want to reference.
List.Sum(Table.SelectRows(tbl_DSBaselines,
(InnerTable) => InnerTable[FinancialID] = [FinancialID] and
InnerTable[Baseline Version] = Text.Combine({FiscalYear,"Q0"})){Table.Column(tbl_DSBaselines,FiscalYearBaseline)}
)
Solved! Go to Solution.
List.Sum(Table.Column(Table.SelectRows(tbl_DSBaselines, (InnerTable) => InnerTable[FinancialID] = [FinancialID] and InnerTable[Baseline Version] = Text.Combine({FiscalYear,"Q0"})), FiscalYearBaseline))
List.Sum(Table.Column(Table.SelectRows(tbl_DSBaselines, (InnerTable) => InnerTable[FinancialID] = [FinancialID] and InnerTable[Baseline Version] = Text.Combine({FiscalYear,"Q0"})), FiscalYearBaseline))
Check out the July 2025 Power BI update to learn about new features.