This content has been marked as final. Show 3 replies
Need some help with expression.
I have a dataset of vendor price list in a form of following:
ItemId, Vendor, PriceDate, Price (whole dataset see below)
My app has one sheet and one table chart containing these four dimensions and some measures. They work fine.
I'm having a headake trying to make a last needed expression.
To define the best vendor price I need first to leave only records with Price > 0.
Then I sholud define last PriceDate by ItemId and Vendor.
Having done this I need to take min Price from all vendor prices and this Price is what i was looking for.
Of course I have to show in chart name of Vendor and PriceDate.
The problem is to make an expression showing PriceDate of the minimal vendor price, descripbed above.
In my test case the correct answer is:
LOAD * INLINE [ItemId, Vendor, PriceDate, Price