Forum Discussion
my_microsoftacc
2 years agoFrequent Visitor
Calculation issues - weird grouping based on the numerical values
Hi everyone, I have a database of different companies' capacity per year. The measures I created are: YTD Capacity: calculates the accumulated capacity up until the year before the filtered year...
Anonymous
2 years agoNot applicable
Hi my_microsoftacc ,
I create a table as you mentioned.
I think you can change your DAX codes, here is my DAX code.
YTD Capacity1 =
CALCULATE(
SUMX(
FILTER(
ALL('Table'),
'Table'[Year] < MAX('Table'[Year])
),
'Table'[Capacity]
)
)Total Capacity1 =
SUMX(
ALL('Table'),
'Table'[Capacity]
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- my_microsoftacc2 years agoFrequent Visitor
Hi thanks for your response but unfortunately it does not work. Now it sums all capacity of all products and all companies I have in my database (I have more than one product, one company)