Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Filter out the blank values

Hello ALL, 

I am having an issue in showing nonblank values in the visual
my table visual is coming as below

RegionMeasure1Measure2Measure3Measure4
a0.00.0 0.1
a 0.00.5 
     
a0.1 00 

 

but i am excepting like below 

regionMeasure1Measure2Measure3Measure4
a0.00.0 0.1
a 0.00.5 
a0.1 00 

 

I need to show only the columns with values (all measures) no blank column (if at least on Measure is having the value we need to so , if all the measure column have no data then we don’t need to show that column )

 

Thanks

 

  • Hi Anonymous ,

     

    Please use the measure and filter visuals when the measure is not blank.

     

    Measure = 
    COUNTROWS (
        FILTER (
            VALUES ( 'Table'[Region] ),
            [Measure 1] <> BLANK ()
                || [Measure 2] <> BLANK ()
                || [Measure 3] <> BLANK ()
                || [Measure 4] <> BLANK ()
        )
    )

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

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

    Hi Anonymous ,

     

    Please use the measure and filter visuals when the measure is not blank.

     

    Measure = 
    COUNTROWS (
        FILTER (
            VALUES ( 'Table'[Region] ),
            [Measure 1] <> BLANK ()
                || [Measure 2] <> BLANK ()
                || [Measure 3] <> BLANK ()
                || [Measure 4] <> BLANK ()
        )
    )

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • FierceBitnet23's avatar
      FierceBitnet23
      Regular Visitor

      Hello! This worked for me, but now when I run my visual with no filters, it exceeds resources. Any ideas?

      • FierceBitnet23's avatar
        FierceBitnet23
        Regular Visitor

         

        Checking back in! I realized that the measure I created always had a return, so it was producing a ton of records with no value or use. Using this filter was helpful to get the right outcome, but it was unnecessary. I just had to add blank handling to my measures that were producing these blank records.

  • Anonymous's avatar
    Anonymous
    Not applicable

    This is not exactly what I am looking for
    the video you shared has steps how to remove the blanks from table
    I need to remove the blank from the visual table (our table doesn’t have the blanks )
    the measure we created for each region those have the blanks
    I am looking for a DAX which will compare all the measures columns and remove the rows which are blank for all the measure

  • mahenkj2's avatar
    mahenkj2
    Icon for Solution Sage rankSolution Sage

    If you could have given little data to test, one can offer sound solution. But I think the setting in attached picture might be helpful to test. You need to click "Region" category and unselect the marked item in attached picture to avoid category with no data.