Forum Discussion

CastroRibeiro's avatar
3 years ago
Solved

Return a column value on a card, based on a condition

I am creating a tooltip, but I need the same tooltip to return values from different columns

 

So I need to do something like this:

If table[sports] = "Soccer" returns column table[playersSoccer],

If table[sports] = "Baseball" returns column table[playersBaseball]...

 

This dax would be on a card, and when the user hovers over it, it will show the value based on the sports table

2 Replies