Forum Discussion

Pawel_1990's avatar
Pawel_1990
Helper I
1 year ago
Solved

SnowFlake - Direct Query - Slow Perfomrance - Adding Role at Power Query

Hello, I am using Snowflake as source for reports. Some of reports were not changed for over a 1,5 year.  Company made decision, that due to security reasons, some data will be masked and roles w...
  • Shahid12523's avatar
    1 year ago

    Why it's slow now
    - Adding roles and masking in Snowflake forces full table scans—even unused columns get queried.
    - Power BI now unmasks first, filters later, which breaks query folding and slows things down.

    What to check
    On Snowflake side:
    - Use column-level masking, not table-level.
    - Add clustering keys and materialized views.
    - Ensure warehouse is right-sized and optimized.
    On Power BI side:
    - Maximize query folding in Power Query.
    - Use composite models (import + DirectQuery).
    - Reduce visuals, optimize DAX, enable Horizontal Fusion.