Forum Discussion

dlkrdrf's avatar
dlkrdrf
New Member
4 months ago
Solved

Total measures show wrong total when report is published

Hi everyone, we've have a semantic model with a lot of measures, mostly SUMX(), sometimes with filter, such as, IF ("1" IN VALUES(Table[Column]), SUMX(Table[Column])). All reports are build based on...
  • grazitti_sapna's avatar
    4 months ago

    Hi dlkrdrf,

     

    This is a common issue while working with SUMX() function, while it works perfect in few cases but it can change the row context while adding it to a matrix or table visuals, you can use inscope() function to cater this.

     

    Measure =
    IF(
    ISINSCOPE(Table[Column]),
    [Row Logic],
    SUMX(
    VALUES(Table[Column]),
    [Row Logic]
    )
    )

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
    🔗 Curious to explore more? [Discover here].
    Let’s keep building smarter solutions together!