Forum Discussion

Rbakker888's avatar
Rbakker888
Helper II
1 year ago
Solved

Multiplying based on category

I think I might be overlooking something simple here but I want to multiply my total revenue by x10 if the category of that order is "contract" This is what I currently use but while this work...
  • rajendraongole1's avatar
    1 year ago

    Hi Rbakker888  - check the below modified measure:

     

    Total_Revenue_Adjusted =
    SUMX(
    Fact_Orders,
    IF(
    Fact_Orders[OrderCategory] = "Contract",
    Fact_Orders[OrderRevenue] * 10,
    Fact_Orders[OrderRevenue]
    )
    )

     

    Hope this works.