Forum Discussion
Lenastray
Helper I
7 years agoCumulative sum over partition by specific column
Hello:
I’m struggling with a method for solving a partition problem in Dax.
I have 2 tables. Table A has a column that I want to calculate the cumulative total. Table B is a Calendar table that has a huge number of columns (date, day, month, year, isholiday, isweekend, ...)
I need to calculate the cumulative total from the specific column from Table A, partitioning by an specific column from column B. This columns marks specific events over time by an ID.
Thanks to all in advance
I’m struggling with a method for solving a partition problem in Dax.
I have 2 tables. Table A has a column that I want to calculate the cumulative total. Table B is a Calendar table that has a huge number of columns (date, day, month, year, isholiday, isweekend, ...)
I need to calculate the cumulative total from the specific column from Table A, partitioning by an specific column from column B. This columns marks specific events over time by an ID.
Thanks to all in advance
3 Replies
- Lenastray
Helper I
To be more specific. Table B is a dimension and table A is a fact table. Both are related in the model by the equivalent date column. - Lenastray
Helper I
Please help : ( - AnonymousNot applicable
Sounds like you're trying to do something like: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-sum-over-partition-by-specific-column/td-p/783829
And otherwise https://stackoverflow.com/questions/49322212/dax-equivalent-to-t-sql-avg-overpartition-by
with 'sum' instead of 'avg'.