Forum Discussion
chrisgehm
Helper III
9 years agoOperate 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?...
- 9 years ago
Hey,
try this
the measure = DIVIDE( CALCULATE( ,COUNTROWS('yourtable') ,'yourtable'[colorcolumn] = "red" ) ,CALCULATE( ,COUNTROWS('yourtable') ,'yourtable'[colorcolumn] = "blue" ) )Regards
Tom
TomMartens
Super User
9 years agoHey,
try this
the measure =
DIVIDE(
CALCULATE(
,COUNTROWS('yourtable')
,'yourtable'[colorcolumn] = "red"
)
,CALCULATE(
,COUNTROWS('yourtable')
,'yourtable'[colorcolumn] = "blue"
)
)Regards
Tom
LarBo
6 years agoFrequent Visitor
Hi TomMartens thank you for your answer, but what happens if red and blue values are not fixed, but ther are selected in two different selection box?
Is any option to do the same dinamically?
Thank you