The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
30 | |
14 | |
12 | |
12 | |
7 |