Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have this scenario of a fact table Shipment and 2 lookup tables Brand and euc_brand.
Note: Brand table is nothing but Distinct Brand column from Shipment table.
The requirement: I need Dax for the following.
Create a Calculated column (Report Friendly Brand Name) matching Friendly brand names from euc_Brand.
If Brand in the Shipment table (or Brand table) does not have corresponding Friendly Brand Names in the euc_brand table, we display the Brand Name in the calc column, else we use the Friendly Brand Names from euc_brand.
Calc column
Report Friendly brand name = Friendly brand names (from euc_brand),
But,
If Friendly Brand Names in euc_brand for the brand = Null, then Report Friendly Brand Name = Brand (in Brand table)
Here is the relayionship:
Thanks Community for your quick help.
Hi @Anonymous ,
Could you pls share your sample data and expect output result ,remember to remove confidential data.
Best Regards
Lucien
Here is dummy data with PBIX:
https://1drv.ms/u/s!AlMdRxAveLesgcMbakkZMCLacmOl-Q?e=7wiKq4
Expected Result:
New column to be added to Brand table based on assocated Friendly Brand Names from euc_brand
Brand Table:
Brand | Report Friendly Brand Name |
Milk | New Milk |
Chocolate | New Chocolate |
Garri | New Garri |
Moinmoin | Moinmoin |
Sugar | Sugar |
I used a LookupValue function:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |