Forum Discussion
Anonymous
4 years agoNot applicable
Display empty if another value is equal to a specific value
Hi guys, I have a data table like below and I would like to display a table with the result like this In fact, when C = YES, I must display empty in A and B. My solutions requ...
- 4 years ago
Hi Anonymous ,
You can create a measure like below:-
_A = IF(MAX('Table (3)'[C]) = "Yes",BLANK(),MAX('Table (3)'[A]))_B = IF(MAX('Table (3)'[C]) = "Yes",BLANK(),MAX('Table (3)'[B]))Enable "Show item with no data"
Output:-
Thanks,
Samarth
Pragati11
4 years agoSuper User
HI Anonymous ,
You can just create 2 columns in Power BI - one for A and the other one for B.
newA = IF(yourtable[C] = "YES", "", yourtable[A])newB = IF(yourtable[C] = "YES", "", yourtable[B])
Replace yourtable with your actual table name in the above DAX expressions.
Anonymous
4 years agoNot applicable
thank you !
That's what I have already done but I wondered if it's possible with a measure