Forum Discussion
WeihsMichael
4 years agoNew Member
sum column A based on values in column B
Last column (3.754.621) should only total up values if column before (3.400.580) contains values (so the last 3 rows should not be part of the total, currently they are). Both data fields are w...
- 4 years ago
WeihsMichael you can write a measure like this
_val2 = CALCULATE(SUM(t2[val2]),FILTER(t2,t2[val1]<>BLANK()))
Samarth_18
Community Champion
4 years agoWeihsMichael , Based on the condition which you have mentioned. Below code would be ideal:-
Column C = IF('ZV Vertrieb'[Aboumsatz] <> BLANK(),'ZV Vertrieb'[Aboumsatz VJ])WeihsMichael
4 years agoNew Member
I changed the code line, but the total remains unchanged 😞
- Samarth_184 years ago
Community Champion
WeihsMichael , Can you try this now:-
Column C = IF('ZV Vertrieb'[Aboumsatz] <> BLANK(),'ZV Vertrieb'[Aboumsatz VJ],BLANK())still if it is not working then is it possible for you to share your PBIX after removing sensitive data?
- WeihsMichael4 years agoNew Member
Sorry, didn't work either. I´d love to share but editor has no such option to upload file, how can I share with you?
- Samarth_184 years ago
Community Champion
If you dont have any issue in sharing then you can share it through one drive or google drive.