Forum Discussion
Rachel_123
Helper I
3 years agoPlease help converting DAX to M
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 f...
- 3 years ago
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"
JoZu
3 years agoFrequent Visitor
Could you please provide some sample data with expected results. I think it would make it easier to find a working solution.
Best regards
- Rachel_1233 years ago
Helper I
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"