Forum Discussion

diogoricciardi's avatar
diogoricciardi
Frequent Visitor
6 years ago
Solved

Add multiple columns using List.A

Hi all,   I have a table with daily sales information, where product categories are in rows and days of the month are in columns. My goal is to get each category's percentege of sales by day of th...
  • ImkeF's avatar
    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.