Forum Discussion
Grand Total is not correct
- 9 years ago
This solved my issue
https://www.mrexcel.com/forum/power-bi/625617-grand-total-average-sum-sales-per-month.html
Let me get this straight: 73,78% is the correct answer, but you are seeking for an incorrect answer.
That's why your measure results in 73.78%.
In order to get your incorrect answer of 73.85%, you need a calculated column with the percentages and then take the average of those percentages (excluding zeroes),
I know how to do the manipulation in Power Query to get the answer you are looking for, but not in DAX.
My advice would be to accept 73.78% as the correct answer.
Hi MarcelBeug 73.78% is correct but client want to see 73.85% by calculating average. But couldn't create calculated column and because of that can't calculate average.
- MarcelBeug9 years ago
Community Champion
This is what I did in Power Query:
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"Value1", Int64.Type}, {"Value2", Int64.Type}}), #"Inserted Division" = Table.AddColumn(#"Changed Type", "Inserted Division", each [Value1] / [Value2], type number), #"Changed Type1" = Table.TransformColumnTypes(#"Inserted Division",{{"Inserted Division", Percentage.Type}}) in #"Changed Type1"- aslan9 years ago
Helper I
MarcelBeugthere can be a way to use same logic with dax also but i am not well with dax because of that couldn't convert it to dax. But anyway thanks for your all help.
- aslan9 years ago
Helper I
This solved my issue
https://www.mrexcel.com/forum/power-bi/625617-grand-total-average-sum-sales-per-month.html