Forum Discussion
Seanan
Solution Supplier
4 years agoBlanks in matrix won't replace
Hi guys, so I have a matrix where I am using UNICHAR's to represent answers that are either correct, incorrect or not attempted. I am having a tough time trying to replace the blanks in my matrix...
danextian
Super User
4 years agoHi Seanan ,
Is [my dax column] supposed to be a text? Have you tried using "0" instead of 0?
- Seanan4 years ago
Solution Supplier
Hi danextian
Sorry I should have been clearer.
The code I've tried is:
ReplaceBlanks = IF(ISBLANK('ItemCompleteSplitLang'[AnswerGraphic]),"0",'ItemCompleteSplitLang'[AnswerGraphic])and sadly this did not replace the blanks.
- danextian4 years ago
Super User
Hi Seanan ,
How about adding another argument to your SWITCH formula? Try using this one instead:AnswerGraphic = SWITCH ( TRUE (), 'ItemCompleteSplitLang'[AwardedMark] >= 1 && ItemCompleteSplitLang[Attempted] > 0, UNICHAR ( 9989 ), 'ItemCompleteSplitLang'[AwardedMark] < 1 && ItemCompleteSplitLang[Attempted] > 0, UNICHAR ( 10060 ), 'ItemCompleteSplitLang'[Attempted] <= 0, UNICHAR ( 128992 ), "0" // return "0" if the other criteria are not met )