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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.