Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

ABC in Power BI DESKTOP

I have a calculated table only with 2 columns: Column A with 1000 different articles and column B with the sales of each one. I need to create one column with the cumulative of sales by article taking in account that some sales are the same for different articles. How can I do it?

 

After I have to create another column with the the cummulative of teh articles, I mean from 1 to 1000 in order to do the %

 

Thank if you can help

 

  • Anonymous , Both as new columns

    Cumm sales = sumx(filter(Table,Table[Article] =earlier(Table[Article])),Table[Sales])
    % = divide([Sales],[Cumm sales])