Forum Discussion
Anonymous
3 years agoNot applicable
Creating one Dax formula for multiple IF statements
@ links to members, content Hello I need assistance in getting this IF statement to work in Dax formula. I am trying to group my data based on gift amounts. I have tried the grouping functio...
Bmejia
3 years agoSuper User
Can something like this work for you using a Switch True Statement
NewColumn = SWITCH(TRUE(),
('Switch'[Gift Amount]>=10 && 'Switch'[Gift Amount]<99.99) && 'Switch'[Gift Cycle]="Recurring","Recurring 10-99.99",
('Switch'[Gift Amount]>=100 && 'Switch'[Gift Amount]<249.99) && 'Switch'[Gift Cycle]="Recurring","Recurring 100-249.99",
('Switch'[Gift Amount]>=10 && 'Switch'[Gift Amount]<499.99) && 'Switch'[Gift Cycle]="Single","Single 10-499.99",
('Switch'[Gift Amount]>=500 && 'Switch'[Gift Amount]<999.99) && 'Switch'[Gift Cycle]="Single","Single 500-999.99",
"1000+"
"1000+"
)