Forum Discussion
How to calculate without blank
- Anonymous3 years ago
Hello null values usually dont show on visulas and dont get calculated, so im guessing you changed null to a space or empty column? when you have the type of the column as text, blank will be used as a space like so if thats the case then just filter out the "blank" by doing this
Countof = CALCULATE(COUNT(ETA_Table[ETA Grouping]),FILTER(ETA_Table,ETA_Table[ETA Grouping]<>"")) - Anonymous3 years ago
kindly use this measure:
perc = [Count ETA]/CALCULATE(COUNT(Table2[ETA Grouping]),FILTER(ALL(Table2),Table2[ETA Grouping]<>""))by the way great work on design just peice of advice, try to create a metric table and put all your measures in it, its easier and more organized you can do that by clicking on "Enter data" tab and just naming the table metrics and after that add metrics to it and you can delete the blnak column
Dear eliasayy,
The solution given to me working well, but then how do I get the percentage except/ignoring the blank?
% ETAGroup =
[Count ETA]/CALCULATE([Count ETA],ALL(Table2[OWL Type]))
With the above measure, it gave me the wrong result.
And below measure based on your suggestion is working well.
Count ETA =
CALCULATE(COUNT(Table2[ETA Grouping]),FILTER(Table2,Table2[ETA Grouping]<>""))
Thank you very much.
Prima Indonesia
hmm im not sure if i understood correctly if you could share some sample data or something to better understand