Forum Discussion
Test for specific intersection on a matrix when there is no data
In a matrix, I wish to test for a specific combination of row value and column value, and then return "n/a" for that intersection - key is that there will be no data for that combination. I don't however want to return "n/a" for other intersections where there is no data. I thought the following might work:
IF( VALUES(rowColName)="xxx" && VALUES(colColName)="yyy", "n/a", do something else) - however, it only works correctly if there is some data - presumably because it can find something to test...?
On another thread someone suggested a left join approach but I would like to avoid complex or intensive operations due to performance issues. However if that's the only solution, then I'll try it out.
Thanks in advance.
- Anonymous9 years ago
HI Anonymous,
Based on your description, you want replace specific cell value to 'na' and not affect the calculation on normal formula, right?
If this is a case, you can try to use below formula:
Check = IF(MAX([Date].[Year])=2016&&MAX([Date].[QuarterNo])=3,"N/A",SUM('Table'[Amount]))Regards,
Xiaoxin Sheng
1 Reply
- AnonymousNot applicable
HI Anonymous,
Based on your description, you want replace specific cell value to 'na' and not affect the calculation on normal formula, right?
If this is a case, you can try to use below formula:
Check = IF(MAX([Date].[Year])=2016&&MAX([Date].[QuarterNo])=3,"N/A",SUM('Table'[Amount]))Regards,
Xiaoxin Sheng