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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

if a number is in one of the two columns that then return that numer.

 I want a DAX formula that returns if the Results. It should look in A or B and pull the number as the results for the product. If there is a blank then there were no test results for that test and only return the row that has a number in it.  Thanks.

 

Capture.PNG

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can try creating a calculated column as follows:

I am assuming there will never be a scenario where Result A and Result B will both have Non Blank values.

 

Results = IF([ResultA] <> BLANK(), [ResultA], IF([ResultB] <> BLANK(), [ResultB], BLANK()))

 

Let me knnow if this works or I have taken a wrong assumption.

 

Thanks,

Pragati

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!!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

If you can confirm these fields only exist one value, you can try to create a calculated column with aggregate function to return the correct one.

Result = MAX('Table'[ResultA],'Table'[ResultB])

1.png

Regards,

Xiaoxin Sheng

Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can try creating a calculated column as follows:

I am assuming there will never be a scenario where Result A and Result B will both have Non Blank values.

 

Results = IF([ResultA] <> BLANK(), [ResultA], IF([ResultB] <> BLANK(), [ResultB], BLANK()))

 

Let me knnow if this works or I have taken a wrong assumption.

 

Thanks,

Pragati

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!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.