cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

RELATED, MERGE table or none

Hi guys,

I have a transactions table and a lookup table.

They're both connected by rate type.

I wanna see how much is my revenue for a specific periode and rate, as well as the difference between the actual rate and the discount rate. I have that information on my lookup rate table. My question is, how to have all that accurate info, on a report?

Once a relationship between both tables is created...

1. I just pick the fields i want from both tables

2. I do a merge between both tables and add all fileds to later pick the ones i want

3. I can do a RELATE on my transactions table of the fields that i want.

I believe all 3 options can work but i don't know which one garantees me accurate values and also, the option that allows faster calculations, cose so far this table is almost 100k records.

Thank you all very very much

Pedro

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

If you can do it, 2 should provide the fastest calculations because you would want to do that in the Query Editor so there is less work to be done calculating things during display. All 3 will work however.

 

Sample data though would be very helpful to provide specifics. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

View solution in original post

v-yuta-msft
Community Support
Community Support

@Anonymous,

 

Just pick columns between mutiple tables may cause some issue or mistabke. So to be general, I would suggest you to merge tables, not use DAX function like RELATED() or RELATEDTABLE() in report level because the DAX engine is much slow than power query engine. All in all, a much more simple and fastest way of data transformation is to do this in database using SQL.

 

Community Support Team _ Jimmy Tao

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

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@Anonymous,

 

Just pick columns between mutiple tables may cause some issue or mistabke. So to be general, I would suggest you to merge tables, not use DAX function like RELATED() or RELATEDTABLE() in report level because the DAX engine is much slow than power query engine. All in all, a much more simple and fastest way of data transformation is to do this in database using SQL.

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Thank you so much guys!!! Will do

Greg_Deckler
Super User
Super User

If you can do it, 2 should provide the fastest calculations because you would want to do that in the Query Editor so there is less work to be done calculating things during display. All 3 will work however.

 

Sample data though would be very helpful to provide specifics. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition
Anonymous
Not applicable

Hey @Greg_Deckler

Thank you so much for your answer,

Of course i agree with you that we should attach a sample file in order to have better and accurate advice, but i thought in this case it wouldn't be needed, don't know why, maybe just wanted to hear your opinion.

I've been using option 1 cose i think i've read somewhere that it would be faster, the calculations and the updates. Is this true?
I've tried now to attach a file but i didn't see any option here....let me try again if i can do it after i send this

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors