March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
Will be very happy if someone can help me
I need in last column (Freight) to be displayed first non blank value from columns (2022, 2021, 2020, 2019). I am struggling how to write it correct in DAX
Table:
what I need to get:
Thank you in advance
Solved! Go to Solution.
@Anonymous ,
if(not(isblank([2022 freight])),[2022 freight],
if(not(isblank([2021 freight])),[2021 freight],
if(not(isblank([2020 freight])),[2020 freight],
if(not(isblank([2019 freight])),[2019 freight]))))
@Anonymous ,
if(not(isblank([2022 freight])),[2022 freight],
if(not(isblank([2021 freight])),[2021 freight],
if(not(isblank([2020 freight])),[2020 freight],
if(not(isblank([2019 freight])),[2019 freight]))))
@Anonymous , Try like
coalesce([2022 freight],[2021 freight], [2020 freight], [2019 freight])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |