Forum Discussion

GianPaolo's avatar
GianPaolo
Frequent Visitor
4 years ago
Solved

ISBLANK() or Measure +0 not working

hello!   I am trying to substitute the blank values I have in this small Matrix with 0 for further calculation I have written this simple measure based on other answers I have found  but it is sti...
  • PaulDBrown's avatar
    PaulDBrown
    4 years ago

    Yes. You need to change the measure to reference the field from the dimension table:

     

    % = 
    VAR currentImporto = [Sum - IsBlankMeasure]
    VAR AllImporto =
        CALCULATE(
            [Sum - IsBlankMeasure],
            ALL('DModello'[MODELLO])
            )
    var ratio =
        DIVIDE(currentImporto,AllImporto)
    return
        ratio