Forum Discussion

_power_bi's avatar
_power_bi
Helper I
1 year ago

Composite model issue

I am having an issue with a composite model.  Here is the setup:  a customers table, a customer_orders table, and an order details table. The first two are imported, the order details table is massive so it uses direct query as I cannot import this table.  The end user will drillthrough from a customer to see all orders for that customer.  Then, to see an specific order details, they will drillthrough on an order and see those details.  

 

The issue I am having is that the first time (and only first time) that I drillthrough to the order details view (direct query) it takes a couple minutes to load the results.  After that, if I go back out and select a new order and drillthrough, the results are instant. 

 

The query itself is optimized and returns results (with the order number) parameter within a few seconds. 

 

I am just wondering what I am doing wrong. Perhaps it is a modeling issue, but what I thought was happening is the order number was being passed to the direct query as a parameter.  But since it is taking so long, perhaps the direct query is running by itself, then from that result it is being filtered. I don't know.  The performance analyzer doesn't show me anything other than it takes a few minutes to load the visual (on the first occurrence). 

 

I saw a video on dynamic m query parameters and will try that if this is the scenario for it.  There are over a million orders. Also, the user doesn't type in the number, it will have to be drillthrough from a table to the order details. 

 

Any help is appreciated as I would like to use this technique on other reports that are fairly large. 

3 Replies