Forum Discussion

anonymous188's avatar
anonymous188
Regular Visitor
8 years ago
Solved

different calculation depending on ID

Hi,   I have the following made-up tables:   Employee ID Product Sold 111 Banana 112 Apple 112 Kiwi 113 Apple 113 Kiwi 113 Mango   Employee ID Role ID 111 ...
  • parry2k's avatar
    8 years ago

    add a measure 

     

    Counts = 
    var cnt = Count(Table1[Product Sold])
    return cnt * if(MAX(Table2[Role ID]) = 2,3, 1) 

    change the table name/column name as it fit in your data model.