Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have the following two tables:
Order and OrdLn
I would like to find OrdLn[Price] where OrdLn[OrdNo] = Order[IDBakssystem] and OrdLn[ProdNo] = "TS-L" and store it in an calculated column TS-L in the Order table.
Unfortunately there are sometimes several instansces where this is true, and this results in an error.
I have looked at similar problems on the forum, but none that matches this or help me solving it.
I have tried with LOOKUP and CALCULATE and FILTERS using FIRSTNONBLANKS and EARLIER without luck.
OrdLn[OrdNo] is also a number and Order[IDBakssystem] is a text, so this needs to be converted with VALUE
Solved! Go to Solution.
This has been solved by correcting the data in the database, eradicationg the original problem.
Thank you very much for your assistance!
Hi @Anonymous ,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?
Regards,
Daniel He
This has been solved by correcting the data in the database, eradicationg the original problem.
Thank you very much for your assistance!
Hi!
Thank you for the follow up.
No it is not solved yet as I have been given other task temporary at work, but I'll let you know as soon as I have tested it.
@Anonymous Please post the sample test data (that can be copied easily) and expected output to suggest an accurate solution.
Proud to be a PBI Community Champion
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.
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
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.
Hi @Anonymous ,
Ok, if your problem could be solved, don't forget to close this topic.
Regards,
Daniel He
I'll try it out in the upcomming days, and post the result.
Thank you for your assistance!
OK! 🙂
I think I solved it by creating two Columns:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.