Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Calculate matrix difference with blank data

Hello, please I require your help I need that the data that appear in white appear in 0, and that it generates the difference in the difference column because currently the cases where the cell is empty is not considering it for the difference, I send screenshot of the measurements, if you can help me with the code, Please.

4 Replies

  • MahyarTF's avatar
    MahyarTF
    Memorable Member

    Hi,

    In my point of view, maybe there is Null value and it is not calculated in your measure, up + 0 after each calculation statement.

    If it is not fixed, need to have your PBIX file for investigation 

      • MahyarTF's avatar
        MahyarTF
        Memorable Member

        Hi,

        In your measure, I just add the '+ 0' to the script and now there isn't any null value, but the issue is not because of the null value.

        As I marked below pic, you compare the dates together in separate tables, and according to the Filter Dax code, there is just one record in each table to calc (one for 202206) and others is for 202205 and never comes in your dax.

        I think you need to change your Dax codes and compare other column(s) or do in another ways