cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Super User IX
Super User IX

Re: RELATED, MERGE table or none

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


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




View solution in original post

Highlighted
Community Support
Community Support

Re: RELATED, MERGE table or none

@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
Highlighted
Super User IX
Super User IX

Re: RELATED, MERGE table or none

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


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




View solution in original post

Highlighted
Anonymous
Not applicable

Re: RELATED, MERGE table or none

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

Highlighted
Community Support
Community Support

Re: RELATED, MERGE table or none

@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

Highlighted
Anonymous
Not applicable

Re: RELATED, MERGE table or none

Thank you so much guys!!! Will do

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors