Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 6 | |
| 6 | |
| 6 |