Forum Discussion
SUM Issue
Hi Kasiop
Please try the following
SUMX(
VALUES(Cost[Type]),
cost(jan) + cost(feb)+ ...)
)
If this does not help please provide a piucture of your data model with relevant columns as well as how your current result looks in Power BI.
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------
Hi,
I didnt manage to make your formula works...
All my data are in one column called CL:
And here is the powerbi visual:
- FataiSanni3 years agoAdvocate III
Hi,
I believe this should work, based on the table you posted.SUMX( 'CL', Jan + Feb + Mar + Apr +... )Alternatively, I will advise you to unpivot the month columns and have all Months in a single column and values in another column. That way, SUM(Values) will just work.
- Kasiop3 years agoHelper II
htanks, but still not working :
CL SUM2 = SUMX('CL',CL[Jan] + CL[Feb] + CL[Mar] + CL[Apr] + CL[May]+ CL[Jun]+ CL[Jul]+ CL[Aug]+ CL[Sep]+ CL[Oct]+ CL[Nov]+ CL[Dec])I still have the global total.Kasiop