Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Dear community,
In power bi I am using as an example a very simple table with 2 columns (date, value) and need a measure to collect the last non-blank value (0.65) for a card. Maybe I am wrong, but my understanding is that the LASTNONBLANK function works with a "sorted" column only.
Is there any function in the Dax measure to identify the last non-blank value in an "non-sorted" column (such as in the value example) .. ?
date | value |
01.01.2024 | 0.89 |
01.02.2024 | 1.34 |
01.03.2024 | 0.65 |
01.04.2024 | |
01.05.2024 |
Appreciate your ideas and input. Many thanks ..
Best
Toby
Solved! Go to Solution.
Hi,
You can achive the desired effect easily e.g. like this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Looks like I still have to learn some tricks .. :).
Many thanks for your help .. it perfectly works.
Hi,
You can achive the desired effect easily e.g. like this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!