Search code examples
powerbidaxpowerquerypowerbi-desktoppowerbi-custom-visuals

Percentage sum by category - Power BI


How can acheive correct SUM % please? I have attahed PBIX file with data and example:

Download PBIX

enter image description here

Thanks you very much.


Solution

  • Try this measure

    Measure2 =
    SUMX (
        ADDCOLUMNS (
            CROSSJOIN ( 'Calendar', 'Product Group' ),
            "diff", [Percentage Diff]
        ),
        [Percentage Diff]
    )
    

    s1