Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have the following data sample
I am trying to get for each machine 28 rows of data with 0 values for col1 & col2 for the rows that does not exist.
So i created another table by the following function
GENERATE(DISTINCT(merge1[Date]),SELECTCOLUMNS(DISTINCT(merge1[Machine]),"Machine1",[Machine]))
and i got this
So i tryed to join the 2 tables by (NATURALLEFTOUTERJOIN) but i got the error (
I want my result table looks like the first table with 56 rows & 0 value for col1 & col2 for the new rows.
the date column & Machine column filled with its info.
Solved! Go to Solution.
hi, @mrben100
If you could use LOOKUPVALUE Function in table that based on GENERATE(DISTINCT(merge1[Date]),SELECTCOLUMNS(DISTINCT(merge1[Machine]),"Machine1",[Machine]))
Column1 = LOOKUPVALUE(merge1[col1],merge1[Date],'Table'[Date],merge1[Machine],'Table'[Machine1])
Column2 = LOOKUPVALUE(merge1[col2],merge1[Date],'Table'[Date],merge1[Machine],'Table'[Machine1])
Result:
Best Regards,
Lin
hi, @mrben100
If you could use LOOKUPVALUE Function in table that based on GENERATE(DISTINCT(merge1[Date]),SELECTCOLUMNS(DISTINCT(merge1[Machine]),"Machine1",[Machine]))
Column1 = LOOKUPVALUE(merge1[col1],merge1[Date],'Table'[Date],merge1[Machine],'Table'[Machine1])
Column2 = LOOKUPVALUE(merge1[col2],merge1[Date],'Table'[Date],merge1[Machine],'Table'[Machine1])
Result:
Best Regards,
Lin
waiting for help
waiting for help