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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mim
Advocate V
Advocate V

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 

 

 

1 ACCEPTED SOLUTION
mim
Advocate V
Advocate V
3 REPLIES 3
mim
Advocate V
Advocate V

amitchandak
Super User
Super User

@mim , are these tables not joined in the model on PK, what is the need for generating it in the measure?

If they are already joined on PK then avoid this GENERATE, if you need multiple column join use combinevalues

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  how to get a table, that containes two columns from two tables, they are linked on multiple to multiple, so I can't use related ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.