The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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])
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
18 | |
18 | |
15 | |
13 |
User | Count |
---|---|
41 | |
35 | |
22 | |
22 | |
17 |