Forum Discussion
find first value
- Anonymous7 years ago
This has been solved by correcting the data in the database, eradicationg the original problem.
Thank you very much for your assistance!
Anonymous Please post the sample test data (that can be copied easily) and expected output to suggest an accurate solution.
OrdLn
| OrdNo | ProdNo | Price |
| 73013 | TS-L | 8000 |
| 73013 | TS-L | 0 |
| 73013 | 10300000 | 390,456 |
| 73013 | T4 | 0 |
| 73013 | T4 | 0 |
| 73013 | T4 | 0 |
| 73013 | TS-L | 0 |
| 73013 | 0 |
However with the formula I thought worked, it still returns 0 not 8000.
- v-danhe-msft7 years ago
Microsoft Employee
Hi Anonymous ,
I am afraid you could not achieve this feature if you have no index for your data column, the FIRSTNONBLANK will just return the minum value for your data:
Regards,
Daniel He
- Anonymous7 years agoNot applicable
Thank you for the reply!
I have an Unique column "LnNo", and I suppose I could use the lowes denominator there as it would be the highest probability to be correct, however not guaranteed.
- v-danhe-msft7 years ago
Microsoft Employee
Hi Anonymous ,
Ok, if your problem could be solved, don't forget to close this topic.
Regards,
Daniel He