Forum Discussion
TREATAS combining filters
- 1 year ago
Hello Evelin_
You can use below DAX code
VAR _1 =
CALCULATE (
SUM ( Data[Volume] ),
TREATAS ( VALUES ( Version2[Version2] ), Data[Version] ),
Data[PACK] = "BOX"
)
VAR _2 =
CALCULATE (
SUM ( Data[Volume] ),
TREATAS ( VALUES ( Version2[Version2] ), Data[Version] )
)
VAR SHARE =
DIVIDE ( _1, _2, -1 ) + 0
RETURN
SHARE
Thanks,
Pankaj Namekar | LinkedInIf this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Hello Evelin_
You can use below DAX code
VAR _1 =
CALCULATE (
SUM ( Data[Volume] ),
TREATAS ( VALUES ( Version2[Version2] ), Data[Version] ),
Data[PACK] = "BOX"
)
VAR _2 =
CALCULATE (
SUM ( Data[Volume] ),
TREATAS ( VALUES ( Version2[Version2] ), Data[Version] )
)
VAR SHARE =
DIVIDE ( _1, _2, -1 ) + 0
RETURN
SHARE
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.