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!
Hi, I've been struggling with a problem for awhile and finally found a workaround but to implement the solution I need to create a table in Power query in M, can anyone help me please translate the following dax to M:
Solved! Go to Solution.
somebody gave me a script that worked
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Project", "Expense Type", "Date"}, {
{"Actuals", each List.Sum(Table.SelectRows(_, each [Versions] = "Actuals")[Value])},
{"Current Budget", each List.Sum(Table.SelectRows(_, each [Versions] = "Current Budget")[Value])},
{"Current Forecast", each List.Sum(Table.SelectRows(_, each [Versions] = "Current Fcst")[Value])}
})
in #"Grouped Rows"
Could you please provide some sample data with expected results. I think it would make it easier to find a working solution.
Best regards
somebody gave me a script that worked
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Project", "Expense Type", "Date"}, {
{"Actuals", each List.Sum(Table.SelectRows(_, each [Versions] = "Actuals")[Value])},
{"Current Budget", each List.Sum(Table.SelectRows(_, each [Versions] = "Current Budget")[Value])},
{"Current Forecast", each List.Sum(Table.SelectRows(_, each [Versions] = "Current Fcst")[Value])}
})
in #"Grouped Rows"
Hi @Rachel_123
Try the following:
let
Source = #"Portfolio Reporting",
#"Grouped Rows" = Table.Group(Source, {"Project", "Expense Type", "Date"}, {{"Actuals", each List.Sum(List.Select([Value], each [Versions] = "Actuals")), type nullable number}, {"Current Budget", each List.Sum(List.Select([Value], each [Versions] = "Current Budget")), type nullable number}, {"Current Forecast", each List.Sum(List.Select([Value], each [Versions] = "Current Fcst")), type nullable number}})
in
#"Grouped Rows"
I dont have any data to try it, sorry. But let me know if it works 🙂
Best regards
Thank you so much, so this works for all the columns except the ones we are summarizing (Actuals, Current budget and Current forecast) I get error on those, something about cannot apply field access
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 |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 125 | |
| 108 | |
| 46 | |
| 29 | |
| 27 |