Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Camus
Frequent Visitor

How to merge queries without matching lookup values?

Hi!

 

I'm finding myself in a situation where I absolutely need to figure out how to merge queries that do not have common lookup values. One table consists of store specific information, the other one product information. What I'd need is to merge the queries so that every store as a parent category has the products. Basically what DAX does when you don't have a relationship between two tables set, but unfortunately, without further dwelling on this, I can't use DAX in this occasion 😕

 

 

2 REPLIES 2
v-haibl-msft
Employee
Employee

@Camus

 

Maybe you can use the CROSSJOIN function in your scenario.

 

How to merge queries without matching lookup values_1.jpg

 

Best Regards,
Herbert

MFelix
Super User
Super User

Hi @Camus,

 

Not sure how your tables are setup but I have made a simple setup of two tables:

 

Stores: Store

Products: Product, Date, Value

 

Go to your store table and add a custom column:

 

Custom_column.png

Expand the Custom column to new rows and it will result with a column with all the rows with Table

 

expand.png

 

Do expand again and select the columns you want to show and if you want to keep the column name:

 

expand_table.png

 

Final result is a table with Store repeated for every single product you have.

 

Final resut.png

 

Not sure if this is what you want but without further information it's difficult to have a more specific result.

 

Regards,

MFelix

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.