Forum Discussion
AlanP514
Post Patron
4 years agoDax Error
Hai All Need help on this why this error is happening The requirement is a user selects any year, He wants to see that year's value otherwise he wants to see sum value
- 4 years ago
AlanP514 Your first IF statement is broken. Why are you even using an IF statement there? IF statements need to have at least 2 arguments. You have 1 argument. Basically you are saying IF the DIVIDE of these two numbers then do nothing else do nothing. Can't work like that. Just drop the IF or decide what you want to return if true or false.
Greg_Deckler
Community Champion
4 years agoAlanP514 Your first IF statement is broken. Why are you even using an IF statement there? IF statements need to have at least 2 arguments. You have 1 argument. Basically you are saying IF the DIVIDE of these two numbers then do nothing else do nothing. Can't work like that. Just drop the IF or decide what you want to return if true or false.