This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 = San Diego County
Col D = San Diego
The function would return the value in Col D, but if no value in Col D, it would look in Col C and if it had a value it would return that. If both columns C & D don't have values, it would look in Col B, etc..
I know I can accomplish this with an IF statement but I remember seeing a function that handles this. Hoping someone knows the function I am referring to.
Thank you!
Kevin
Solved! Go to Solution.
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.
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.
Thank you!! That was exactly what I was looking for!!
Do you mean the ?? operator?
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |