Forum Discussion

sd_kevin's avatar
sd_kevin
Advocate II
5 years ago
Solved

Power Query Function That Returns Value Based on Which Columns Have Data

Hi,   In the past I came across a function that would return a value from either Column A, B, C, or D depending if which ones contain data.    For example:   Col A = USA Col B = CA Col C = Sa...
  • v-xiaotang's avatar
    5 years ago

    Hi sd_kevin 

    Try this function COALESCE().

    e.g.

    FYI: https://dax.guide/coalesce/

     

    Best Regards,

    Community Support Team _ Tang

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