Forum Discussion

mufy_cw's avatar
mufy_cw
Regular Visitor
6 months ago
Solved

Diffucty in getting rank function when bridge table is used

As suggested by most of them I created a bridge table. I first unpivoted my sales table in dataflows which expanded to 35 crore lines. There is no other way to control it as because it just have pfc,...
  • v-karpurapud's avatar
    v-karpurapud
    6 months ago

    Hello mufy_cw 

     

    Even though REGIONDATA is directly connected to BASE MEASURE, the ranking issue occurs because measures like RANKX evaluate over a virtual table.

    If you build a virtual table using only MODIFIED BRANDS and COMPANY BY SBU, any slicers or filters on other BASE MEASURE columns won’t be included automatically. This means the rank calculation doesn’t fully honor the filter context, even with the relationship in place.

    By using SUMMARIZE to create the virtual table, you ensure all relevant filters from BASE MEASURE are applied, preserve the connection with REGIONDATA, and prevent unnecessary data model expansion. That’s why the revised measure works as expected.

    Regards,

    Microsoft Fabric Community Support Team.