Forum Discussion

tamara_nsb's avatar
tamara_nsb
Helper I
3 years ago
Solved

Create Submission Report

I am trying to create a visual that shows missing or unfinished entries.  I have a table like this where there is only 1 entry for each Project/Month pair

ProjectDateFinalized
ProjectA1/1/20201
ProjectA2/1/20201
ProjectB2/1/20201
ProjectC2/1/20201
ProjectA3/1/20200
ProjectB3/1/20201
ProjectC3/1/20201
ProjectA4/1/20201
ProjectC4/1/20201
ProjectD4/1/20201
ProjectA5/1/20200
ProjectB5/1/20201
ProjectC5/1/20201
ProjectD5/1/20201
ProjectA6/1/20201

 

And I want to show something like this:  Where I want to show 

Red = “missing”

Yellow = “Not Finalized”

Green = “Finalized”

I have a Calendar table linked and I have tried this with a matrix using the Finalized field  With Green>= 1

Yellow ==0,  and Red = IsBlank

But all I ever get is red,  it never shows anything as 0  Value.   I am assuming this is becaue it is using Sum of Finalized and adding with a blank doesn't work.

 

Is there a way to do this?

Thanks

  • DAX for you:
    Coloring table =
    var current_status = SUM('Table'[Finalized])
    return
    SWITCH(TRUE();
        ISBLANK(current_status);-1;
        current_status = 0;0;
        current_status > 0;1
    )
     

     

     

2 Replies

  • bolfri's avatar
    bolfri
    Solution Sage
    DAX for you:
    Coloring table =
    var current_status = SUM('Table'[Finalized])
    return
    SWITCH(TRUE();
        ISBLANK(current_status);-1;
        current_status = 0;0;
        current_status > 0;1
    )
     

     

     
  • Thanks,   This worked for me,  I just had to change to commas instead of semicolons.