Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Blank & Zero Values in a Matrix

Good Morning Community,

 

I have an easy one where a matrix I have created, shows the standard deviation of days difference in accordance with their "on-time" measure. Meaning that if the value is >3 then it is considered late, <-4 it is considered early, and in between is considered on-time. Here in the matrix though there are blanks for months as well as zeros. I was wondering what the difference between the two is? Is there a reason that both zeros and blanks are in the matrix instead of just one or the other? Thank you as always!

 

 

4 Replies

  • Anonymous these are two different things, I believe whatever measure you are using, somewhere it has the value in the cell, maybe zero and that is adding up to showing the zero whereas in other cases there are no rows, and get the blank value

     

    read more here.

     

    I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

     

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

    Your source data has blanks. Not sure about the zeros. It either has zeros, or it has numbers that add up to zero.

     

    Blanks and zeros are very different animals for DAX. My advice is 99.9% of the time, you do not want blanks in any of your values unless you are specifically looking for them and want to handle them in DAX. If you want to get rid of them, click on the column in Power Query, click on the Transformation tab, then Replace Values. Type null in the search for field and 0 in the replace with.

     

    Read this for more info on how Blanks work and how to handle if you bring them into DAX.

  • Hi Anonymous ,

     

    Based on the description you have given:

    • ZERO indicate that your calculated measure results to a zero value for that month and Vendor.
    • BLANK indicates there is no data for a months against a vendor.

    If still have question, try posting your calculations and some smaple data.

     

    If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

     

    Thanks,

    Pragati

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

    the 0.00 will probably be where you have values but they are 0 and the blank is where there is no value, you can change the blank to 0 with a 

     

    if(isblank(value),0, value)