Forum Discussion
Performance inspector for Desktop?
Anonymous what you are trying to do in the step you found is running slow?
parry2k right now the slowest step is a merge between two tables. It's joining on a 2 to 3 character unique code. One table has the code as a primary key while the other has it as a foreign key. There's about 200 rows in the primary table and 20k in the other.
- parry2k7 years agoSuper User
Anonymous great, you found the step. Now without knowing all the details, you can ignore merge step and instead set relationship between the table in data model in powerbi (relationship tab) and then you can use the column from primary table.
Without knowing I'm not fully sure why you are using merge but it can be removed and relationship will be the way to go.
- Anonymous7 years agoNot applicable
parry2k i hear what you're saying but i am not sure it is the right solution for my problem. let me explain my situation in greater detail:
I have a table with 20k rows and about 30 columns. Each row is a customer. One column holds a contract code, which relates to another table. Each other column represents the revenue transacted by that customer in a particular category of products.
I have another table that holds the contract information. For additional context, multiple customers can be on a contract - think of it like group purchasing. Each row in that table is a contract code and each column represents whether our not they are contracted in a particular category of products.
I want to join those two because I need to calculate compliance to the contract on a customer level. To put ths into context, at each customer there are several purchasers. I want to calculate the $ per purchaser and then compare that to a benchmark value that I have in another table.
Ultimatley, I have no idea how to perform all those operations in DAX because they need to be perform on a line-by-line basis
- parry2k7 years agoSuper User
Anonymous I believe it can be achieved using DAX, may be best would be to send sample data (hide any sensitive inforamtion) and what you want to achieve and will try to get you the solution.