Forum Discussion
magutter
8 years agoRegular Visitor
Custom Columns
I'm tring to create a custom column which uses sum(Sales) but want to filter on another column call type where it shows everything EXCEPT Types that equal "JC" or "JD". Tried the following syntax bu...
magutter
8 years agoRegular Visitor
Hi Dale
Thanks alot for your response. I know how to do it as a measure but what would you suggest when creating a custom column in the query editor. It would appear that custom columns uses "m" query language which I'm struggling with
v-jiascu-msft
8 years agoMicrosoft Employee
Which result do you want?
Best Regards,
Dale
- magutter8 years agoRegular Visitor
Hi Dale
I want it to get the NET figure for Sales but exclude TYPE of "JC" or "JD". I want those types to return a value of 0
- v-jiascu-msft8 years agoMicrosoft Employee
Hi magutter,
You can try it like this:
if [Sales] > 0 and [Type] <> "JC" and [Type] <> "JD"
then [Net Amount]
else 0Best Regards,
Dale