Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter with dates; yes or no

Hi all,

 

I need your support. I've got a list of customers and contact dates (from Salesforce). I want to filter in the way, that every customer with a contact date gets a "yes" and every customer withour contact date gets a "no" in a new column.

 

How do I get this done?

 

Thanks for your support.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    You can use Measure/Calculated Column/Power Query Editor.

    In addition to  

    Measure:

    Measure = IF(ISBLANK(MAX('Table'[Contact Date])),"No","Yes")

    Calculated Column:

    Column = IF(ISBLANK('Table'[Contact Date]),"No","Yes")

    Result:

    You can download the pbix file from this link: Filter with dates; yes or no

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    You can use Measure/Calculated Column/Power Query Editor.

    In addition to  

    Measure:

    Measure = IF(ISBLANK(MAX('Table'[Contact Date])),"No","Yes")

    Calculated Column:

    Column = IF(ISBLANK('Table'[Contact Date]),"No","Yes")

    Result:

    You can download the pbix file from this link: Filter with dates; yes or no

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

  • In Power Query add a conditional column and specify your criteria.