Forum Discussion
KellyDittmar
Advocate IV
8 years agoDax - IF statement comparing two measures
I'm sure there is an obvious solution to this issue - it's awfully hard to google search for help with an if statement! I work for a consumer goods company - we sell items to customers at MSRP. ...
KellyDittmar
Advocate IV
8 years agoOrder month is on my date dimension and works perfectly without my bad measure... Which us confusing.
RobertSlattery
Responsive Resident
8 years agoYes, DAX is always confusing when you're dealing with measures.
Did you try my suggestion with the relationships?
- KellyDittmar8 years ago
Advocate IV
RobertSlattery - I had to get back to my work computer to try it... Unfortunately, I don't have SS 2016 - so I cannot set that as an option.
- KellyDittmar8 years ago
Advocate IV
That being said... I think you're onto something...
I just changed the measure I need to be this:
Consumer Sales Type = IF(45=45,"Closeout Sales","Regular Sales")
And it still brought in all of my "garbage rows".
- RobertSlattery8 years ago
Responsive Resident
Based on your original post, it looks like your Consumer Sales Type is a calculated column rather than a measure. Can you confirm? It would also help if you published the exact code rather than pseudo code for the measures as well.