Forum Discussion

Farrah24's avatar
Farrah24
Frequent Visitor
3 years ago
Solved

Display status based on their value

Hi! So i have data of App Sales for each platform, (A platform, B platform and C platform). I want to show the status of if the app is "Profitable"  or "Unprofitable" based on their summation betw...
  • ddpl's avatar
    ddpl
    3 years ago

    Farrah24 try this one

     

    Status = var _D = CALCULATE(max('Table'[Date]),ALLSELECTED('Table'[Date]))
             return
             if(CALCULATE(sum('Table'[Platform A Sales, USD]) + sum('Table'[Platform C Sales, USD]),'Table'[Date] = _D) = 0 ,"Unprofitable " & _D,"Profitable " & _D)