Forum Discussion

BudMan512's avatar
BudMan512
Icon for Helper V rankHelper V
3 years ago
Solved

Two Measures - two different results

Hi All, I am producing a Matrix that shows customer deliveries of fuel for each month of the year. I also have a second page with various tables and graphs including one that sums the gallons...
  • Martin_D's avatar
    3 years ago

    You could add a measure like this:

    Mixed Unit Value =
        CALCULATE (
            [Adj Qty],
            KEEPFILTERS ( category[CATEGORY] = "01C" )
        ) +
        CALCULATE (
            [Gallons],
            KEEPFILTERS ( category[CATEGORY] <> "01C" )
        )

    It calculates measure [Adj Qty] for category 01C and [Gallons] for all other categories.