Forum Discussion

chrisgehm's avatar
chrisgehm
Helper III
8 years ago
Solved

Operate with 2 cards

Hi everyone!   I'm having troubles while operating with 2 cards.   Both of them have filters and I have a numer from each card. Is there any way to make arithmetic operations between both cards?...
  • TomMartens's avatar
    TomMartens
    8 years ago

    Hey,

     

    try this

    the measure = 
    DIVIDE(
      CALCULATE(
        ,COUNTROWS('yourtable')
        ,'yourtable'[colorcolumn] = "red"
      )
      ,CALCULATE(
        ,COUNTROWS('yourtable')
        ,'yourtable'[colorcolumn] = "blue"
      )
    )

    Regards

    Tom