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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
florent-3628
Frequent Visitor

How to join large tables whithout exceeding max resources ?

Hi , i try to fill a column from three table. 100k rows per table

 

I use this measure , and it work , but i'm exceeding max resources ...

if(SELECTEDVALUE(main[state])="new";SELECTEDVALUE(newtable[version]);SELECTEDVALUE(oldtable[version]))

I'm not familiar with DAX but i wonder the problem is with "selectedvalue" but i don't know what else to use...

 

Anyone can help ?

1 ACCEPTED SOLUTION

Hi @florent-3628,

 

My bad. It's a measure. You may still use a measure. It could be like this.

 

Measure =
IF (
    MIN ( main[state] ) = "new";
    MIN ( newtable[version] );
    MIN ( oldtable[version] )
)

The formula of a Calculated Column could be like below.

 

 

Measure =
IF (
    main[state] = "new";
    RELATED ( newtable[version] );
    RELATED ( oldtable[version] )
)

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
florent-3628
Frequent Visitor

Hi,

MIN or MAX doesn't give the correct result ; Have a look:

2019-01-15 15_44_21-tests - Power BI Desktop.png2019-01-15 15_48_01-tests - Power BI Desktop.png

Hi @florent-3628,

 

My bad. It's a measure. You may still use a measure. It could be like this.

 

Measure =
IF (
    MIN ( main[state] ) = "new";
    MIN ( newtable[version] );
    MIN ( oldtable[version] )
)

The formula of a Calculated Column could be like below.

 

 

Measure =
IF (
    main[state] = "new";
    RELATED ( newtable[version] );
    RELATED ( oldtable[version] )
)

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, Column + related was the right way ! Thank you so much .

 

Now i can use a lot of tables and display 5 column like this without any problem:

2019-01-22 11_41_25-powerbi.png

 

 

 

 

 

v-jiascu-msft
Employee
Employee

Hi @florent-3628,

 

What are the relationships among these tables? It seems a calculated column. If so, the SELECTEDVALUE could be in the wrong place. Try this formula, please.

 

Column =
IF ( main[state] = "new"; MIN ( newtable[version] ); MIN ( oldtable[version] ) )

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Not sure regarding performance but you can often use an aggregation like MIN or MAX in lieu of SELECTEDVALUE. You could give that a try to see if performance improves.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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