Forum Discussion

NEJO's avatar
NEJO
Advocate I
1 year ago
Solved

Partitioning based on Year-Month

Dear Experts   I have a question around partitions, and best practices.   Scenario   We have a Lakehouse in use - which will underpin a number of Direct lake semantic models, as well as used fo...
  • v-nmadadi-msft's avatar
    1 year ago

    Hi NEJO ,
    Thanks for reaching out to the Microsoft fabric community forum.

    In Power BI and Fabric, partition pruning is most effective when filters are applied directly to the column used for partitioning in the fact table. When filters are applied indirectly such as through a related dimension table partition pruning typically does not occur. This is because the query engine cannot reliably determine which partitions to scan until after joins are evaluated, which happens too late in the query execution process for pruning to take effect. To improve pruning in such scenarios, it’s recommended to include commonly filtered attributes (like FiscalYear) directly in the fact table, allowing filters to act on those columns directly. This denormalization ensures that partition pruning can occur and helps optimize query performance.

     


    If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
    Thank you