Hi,
I have a query regarding the lookup function in a tabular model. I have a fact table as follows :
Farmer Code Milk Quantity Fat%
f1 100 3.8
f2 200 5.3
There is a dimension table storing buckets of fat % as follows
id from% to% Bucket Name
1 2.5 4.0 Low fat
2 4.1 6.0 Medium Fat
i want to create a column in the tabular model to store the id of the bucket table matching the fat percentage of the fact table. the final result should be as shown :
Farmer Code Milk Quantity Fat% bucket_table_id
f1 100 3.8 1
f2 200 5.3 2
What function of DAX can achieve this ?
Secondly once i create such a column, will i be able to use this to link back to the bucket table ?
A quick answer would be highly appreciated.
Kind REgards
Sanjay Shah, Prosys, pune