Forum Discussion
spagad6263
2 years agoPost Patron
DAX question
Hi,
I created a measure to calculate [Request] total for those "Non - Special" branches. It works ok for all branches, but not with the branch slicer, i.e, when I select a particular branch, the number doesn't change. I am sure there is issue with my measure below. Any suggestions? Sorry, I am new to DAX.
Thanks
meas_Request_Branch = CALCULATE
(
SUM(Data[Request]),
Data[Branch] <> "Special"
)
spagad6263 try this:
meas_Request_Branch = CALCULATE ( SUM(Data[Request]), KEEPFILTERS ( Data[Branch] <> "Special" ) )
5 Replies
- parry2kSuper User
spagad6263 try this:
meas_Request_Branch = CALCULATE ( SUM(Data[Request]), KEEPFILTERS ( Data[Branch] <> "Special" ) ) - spagad6263Post Patron
Thanks and this is exactly what I need.
Can you have a quick explanation about what below does?
KEEPFILTERS ( Data[Branch] <> "Special" ) - parry2kSuper User
spagad6263 check this video on my YT channel:
- spagad6263Post Patron
Thanks. You are amazing!
- parry2kSuper User
spagad6263 oh! We all learn from each other. Thanks for the feedback. 🙏