Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to calculate without blank

  • Anonymous's avatar
    Anonymous
    3 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]<>""))
  • Anonymous's avatar
    Anonymous
    3 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