Forum Discussion
vojtechsima
4 years agoSuper User
Matrix - Total to All when filtered
Hi, guys, I am quite struggling with this one: I need this table: BU Something Total by BU Total by Item Total by selected BU Elle 5500 7068927 6500 8608966 Louis 1000 1540039 ...
- 4 years ago
Hi, amitchandak
I am a bit embarrassed that I didn'T figure this out, however, I managed to fix it by referencing the previous measure and adding the ALL filter.var __calc = CALCULATE('sample'[AllexceptBU], ALL('sample'[BU])) return __calcHowever, I appreciate your time and effort. Thank you
amitchandak
4 years agoSuper User
vojtechsima , try if one of the two can help
var __SelectedBUs = VALUES('sample'[BU])
var __calc = CALCULATE(SUM('sample'[Something]),Keepfilters('sample'[BU] IN __SelectedBUs)
or
var __SelectedBUs = VALUES('sample'[BU])
var __calc = CALCULATE(SUM('sample'[Something]),'sample'[BU] IN __SelectedBUs)
vojtechsima
4 years agoSuper User
Hi, amitchandak
I am a bit embarrassed that I didn'T figure this out, however, I managed to fix it by referencing the previous measure and adding the ALL filter.
var __calc = CALCULATE('sample'[AllexceptBU], ALL('sample'[BU]))
return __calcHowever, I appreciate your time and effort. Thank you