Forum Discussion

chotu27's avatar
chotu27
Icon for Post Patron rankPost Patron
8 years ago

Blanks in matrix needed

Hi i have situation where my matrix is not allowing me to replace zero's instead of blanks .

 

 

please check the below calculation and screenshot.

 

 

DAX Calculation      # Subjects = var sub = [Subjects]
                                                     var coun = [Countries]
                                                      return IF(ISBLANK([Countries]),sub,IF(ISBLANK(sub),0,sub))

 

 

Blank replacing with 0Regular count without zero

5 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    I'm not following this, seems like your screen shot shows blanks replaced by 0's

    • chotu27's avatar
      chotu27
      Icon for Post Patron rankPost Patron

      Greg_Decklerin a matrix if i even i replaced with Zero that countries which are not involved also showing zero . can i know the dax formulae for it to make it work.

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        Going to need to see example source data. I have no idea what you have in your data for columns like Subject and Countries so difficult to tell you what is going on.