Forum Discussion

RustyD's avatar
RustyD
Frequent Visitor
2 years ago
Solved

Sum values from different columns and keep aggregated result

hi I have a simple measure inside 1 table: column A minus column B and it works fine on high level of aggregation.      But the problem is that when I add more columns where some rows cont...
  • uzuntasgokberk's avatar
    2 years ago

    Hello RustyD,

    You can change the measure like this,

    pbisup=
    IF(
    ISBLANK(SELECTEDVALUE(Tablesil1[B])) ||
    ISBLANK(SELECTEDVALUE(Tablesil1[P])),
    0,
    SUM(Tablesil1[B])-SUM(Tablesil1[P])
    )

    Kind Regards,
    Gรถkberk UzuntaลŸ

    ๐Ÿ“Œ If this post helps, then please consider Accepting it as a solution and giving Kudos โ€” it helps other members find answers faster!

    ๐Ÿ”— Stay Connected:
    ๐Ÿ“˜ Medium |
    ๐Ÿ“บ YouTube |
    ๐Ÿ’ผ LinkedIn |
    ๐Ÿ“ท Instagram |
    ๐Ÿฆ X |
    ๐Ÿ‘ฝ Reddit |
    ๐ŸŒ Website |
    ๐ŸŽต TikTok |