Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi
I am getting an strange or unexpected result in calculated column in 'lastnonblank' formula. Bilow is the picture describing the problem.
'Last update date' column is also a calculated column using last date formula but same formula is resulting wrong value in next column. How I can fix this error?
n.b. Relation between both table is 1 to many.
Solved! Go to Solution.
Hi @owais,
Please create a calculated column use LOOKUPVALUE( ):
current status = LOOKUPVALUE('updates'[Update Status],'updates'[Project Name],'Table1'[Project Name],'updates'[Update Date],'Table1'[last update date])
Best Regards,
Qiuyun Yu
Hi @owais,
Please create a calculated column use LOOKUPVALUE( ):
current status = LOOKUPVALUE('updates'[Update Status],'updates'[Project Name],'Table1'[Project Name],'updates'[Update Date],'Table1'[last update date])
Best Regards,
Qiuyun Yu
Thanks for perfect reply. Its working with lookup. But could you explain what was wrong in my formula? and another thing, if there are 2 or more entries in same date for same project, which wone it will take?
Thanks
Hi @owais,
The LASTNONBLANK() function is used for returning the last value in the column, column, filtered by the current context, where the expression is not blank.
Regarding the calculated column:
Column = LASTNONBLANK('updates'[Update Status],LASTDATE('updates'[Update Date]))
As 'updates'[Update Status] is TEXT, it will sort 'updates'[Update Status] values based on the first character within each project. So that's the issue why you didn't get desired results.
Best Regards,
Qiuyun Yu
User | Count |
---|---|
120 | |
95 | |
88 | |
73 | |
66 |
User | Count |
---|---|
138 | |
112 | |
110 | |
98 | |
94 |