Forum Discussion
Add multiple columns using List.A
- 6 years ago
Hi diogoricciardi ,
this sounds like a calculation that should better be performed dynamically with DAX.
But if you really need to do it in the query editor in M, you should consider unpivoting the days columns (check the columns that should be kept and select: Unpivot other columns). Then you have just 2 columns to divide against each other.
Hi diogoricciardi ,
this sounds like a calculation that should better be performed dynamically with DAX.
But if you really need to do it in the query editor in M, you should consider unpivoting the days columns (check the columns that should be kept and select: Unpivot other columns). Then you have just 2 columns to divide against each other.
Hi Imke,
That actually helped a lot. I can't believe I didn't see it hehe.
One of the last steps in my query was pivoting the table so the days would be in columns. So what I did was to calculate the percentages before pivoting it and it worked beautifully.
Thanks a lot, I appreciate it.