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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
campelliann
Post Patron
Post Patron

Huge Lookup Table with Cross Join - will impact performance?

Hi,

So I basically need some visuals to filter the revenue by Business Unit, Client and Project. We have a table with the Budget and then another with Revenue.

I need a Lookup table to filter both. I do a cross Joint between 50 BUs, 50 Clients and 50 Projects and then create an ID for each combination I will have a table with 4 columns and 125000 rows.

 

If this is too expensive I ll need to do the filtering inside a measure (with In values, or treat as)..

Thanks

1 ACCEPTED SOLUTION

Ok so Power BI automatically hides blanks so you could leave them separate.

 

Alternatively I'd look to create a project dimension related to both the revenue and budget fact tables as follows:

 

In Power Query:

1) Reference revenue table.

2) Select your three columns (BU, Clients, Projects) and use remove other columns.

3) Remove duplicates.

4) Repeat with the Budget table.

5) Append the two new tables together.

6) Remove duplicates

7) Add an index column and rename it to ProjectId

😎 Go back to your fact tables and do a merge join to look up the Id column you've just created.

9) Remove the original columns.

 

Same as you were originally planning but without the cross join,

you'll only have existing combinations in your project dimension table.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

3 REPLIES 3
bcdobbs
Community Champion
Community Champion

Why do you need to do a cross join? Would make sense to leave them as separate tables (dimensions) related to each fact table.

 

Can you supply some example data?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Hi @bcdobbs,

 

First and foremost thanks for answering. The thing is that I need this information on the same chart/matrix, thus the need for a lookup table (s) to filter both tables at the same time. Also these lookup tables should be some how connected, because each business unit has diferent clients (and each client different projects). So I dont want a client who does not belong to a particular Business unit to show up on the matrix (perhaps I can just filter and hide the clients for which the measure revenue/budget is 0)..

 

Revenue Table

Business UnitClientProjectRevenue 
A1x100 
C2y500 
D3z200 
B4D500 

 

Budget Table

Business UnitClientProjectBudget
A1x100
C2y500
Z3z200

Ok so Power BI automatically hides blanks so you could leave them separate.

 

Alternatively I'd look to create a project dimension related to both the revenue and budget fact tables as follows:

 

In Power Query:

1) Reference revenue table.

2) Select your three columns (BU, Clients, Projects) and use remove other columns.

3) Remove duplicates.

4) Repeat with the Budget table.

5) Append the two new tables together.

6) Remove duplicates

7) Add an index column and rename it to ProjectId

😎 Go back to your fact tables and do a merge join to look up the Id column you've just created.

9) Remove the original columns.

 

Same as you were originally planning but without the cross join,

you'll only have existing combinations in your project dimension table.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.