Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have the following model:
And I would like to create a column in All Items table which contains text in SAPBW_Items[ExtMatGroupName] if DALI_ProductFam[DALI ProductFamDescription] is empty. (All items are or in SAPBW_Items or in DALI_ProductFam but cannot be in both)
I managed to do it with the following DAX formula:
ProductFamily V2 = var _CodeItem = 'All Items'[CompanyCodeItem] var _DALIItemSkey = LOOKUPVALUE(DALI_Items[DALI ProductFam],DALI_Items[Item_Skey_Bigint],_CodeItem) var _DALIFamily = LOOKUPVALUE(DALI_ProductFam[DALI ProductFamDescription],DALI_ProductFam[ProductFam],_DALIItemSkey) var _SAPFamily = LOOKUPVALUE(SAPBW_Items[ExtMatGroupName],SAPBW_Items[Item_Skey_Bigint],_CodeItem) Return COALESCE(_DALIFamily,_SAPFamily)
But as the dataset is really huge, the calculation time is a little bit slow... Is a way to improve it? PS: 'All Items'[CompanyCodeItem], DALI_Items[DALI ProductFam] and SAPBW_Items[ExtMatGroupName] are columns of strings.
Solved! Go to Solution.
Fantastic. Thanks!!!
@RenaudF , If the direction of copy is 1- many use related.
if direction of Copy relatedtable
example
realtedtable(Table2, Table2[Value])
related(Table1[Value])
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Ideally if the performance is slow, you can consider merge in power query, or better move the calculation to source
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Thanks for links and idea.
Unfortunately the tables are in DirectQuery and I'm not able to use PowerQuery for them.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |