I have two tables are data and report.
The data table contains two columns: item and text. The item and text columns contain duplicates.
I am applying the following calculated column in the report table
RESULT =
CALCULATE (
FIRSTNONBLANK ( DATA[TEXT], TRUE () ),
FILTER ( DATA, DATA[ITEM] = REPORT[ITEM] )
)
In order to get the data from the data table into the report table.
If the item is not available in the data table, then return “NA” according to the item in the report table. My calculated column is showing blanks if the item is not available in the data table but I want "NA" instead of blanks.
My calculated column is picking the min qty according to the item in the report table based on the data table where the same item contains multiple qty but I want max qty in the report table according to the item where the same item contains multiple qty.
Can you please advise?
Herewith attached the power bi for your reference.
https://www.dropbox.com/s/e3fa45f8qz8a2tm/LOOKUP%20MULTIPLE%20VALUE_QTY.pbix?dl=0
Data & Report: