Forum Discussion
Make empty data points show up as zero
- Anonymous6 years ago
HI Anonymous,
I'd like to suggest you confirm if these empty data did not really exist in your tables first. For this scenario, these empty data are expanded by the current category combo and you can't direct replace these values.
You need to extract category value as a new table and use this on your visual, then write measure formula to lookup value based on raw table category and new table value, replace the not matched parts with zero records.
Replacing null values in matrix visual
Regards,
Xiaoxin Sheng
Hi Anonymous
Did you try to use the Replace values option in the Query Editor. You can select all empty values to be replaced with "0".
Please let me know if that helps or in case you need a different solution.
Hello Anonymous,
It won't work in this case since the answers are rows, and if no one answered "Disagree" then this row simply does not exist in the table for a specific question, therefore I wouldn't be able to replace it. What I can try to do is to create a column that counts the answers for each question and then replace those values. Maybe that should work.
- Greg_Deckler6 years agoCommunity ChampionSo if you have a measure, generally:
Measure =
VAR __MyCalc = <some calc>
RETURN
IF(ISBLANK(__MyCalc),0,__MyCalc)
You might also need to check for = ""