Forum Discussion

mim's avatar
mim
Icon for Advocate V rankAdvocate V
5 years ago
Solved

Filter generate is very slow in DirectQuery Mode

I have two Tables, Budget (dimension Table) and Installed Quantity (Fact Tables), linked as multiple to Multiple.

Installed Quantity is DirectQuery as it change frequently

Budget is import as it change only once a month.

 

to calculate Value Achieved, I am using this measure

 

Value Achieved=
VAR _Table =
    FILTER (
        GENERATE ( Budget_Resources, Installed_Qty ),
        Budget_Resources[PK] = Installed_Qty[PK]
    )
RETURN
    SUMX ( _Table, [Resource Net amount/unit] * [Installed_Qty] )

 

when in import mode for both, it works fine, but when I changed Installed QTY to DirectQuery, it is become extremely slow, 2 minutes to render ? is there a better way 

 

 

3 Replies