Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Display empty if another value is equal to a specific value

Hi guys,

 

I have a data table like below

Capture.PNG

 

and I would like to display a table with the result like this 

Capture1.PNG

In fact, when C = YES, I must display empty in A and B. 

My solutions requires a creation of a column in the data model and in order to optimize the performance I would like to do it with Dax language. Do you think it's possible ?

 

Thank you !

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

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"

Samarth_18_3-1646745872622.png

 

 

 

Output:-

Samarth_18_2-1646745818768.png

 

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

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"

Samarth_18_3-1646745872622.png

 

 

 

Output:-

Samarth_18_2-1646745818768.png

 

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Pragati11
Super User
Super 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.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

thank you ! 

That's what I have already done but I wondered if it's possible with a measure

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors