Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to exclude blank values in a summarize table

Good morning Community,

 

I have a dataset that contains changes of dates for items,

I have created a summarize table that contains the earliest and latest dates based on the updated date column.
When working on "Ready to Ship" column, I am using the following

"Earliest RTS",
CALCULATE (
MIN( 'Active Orders'[Ready to Ship]),
FILTER (
ALL ( 'Active Orders'[Update Date] ),
'Active Orders'[Update Date] = MIN ( 'Active Orders'[Update Date] )
)
),
but I get the blank value.
 
Do you know how I can ignore the blank values.
 
Thank you



  • Hi, Anonymous ;

    Since I am not very clear about your table structure and the result you want to output, I have tested it according to your DAX and can try to change it to:

    Earliest RTS =
    CALCULATE (
        MIN ( 'Active Orders'[Ready to Ship] ),
        FILTER (
            'Active Orders',
            [Update date]
                = CALCULATE (
                    MIN ( [Update date] ),
                    FILTER ( 'Active Orders', [Ready to Ship] > BLANK () )
                )))
    

    The final output is shown below:


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Anonymous ;

    Since I am not very clear about your table structure and the result you want to output, I have tested it according to your DAX and can try to change it to:

    Earliest RTS =
    CALCULATE (
        MIN ( 'Active Orders'[Ready to Ship] ),
        FILTER (
            'Active Orders',
            [Update date]
                = CALCULATE (
                    MIN ( [Update date] ),
                    FILTER ( 'Active Orders', [Ready to Ship] > BLANK () )
                )))
    

    The final output is shown below:


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.