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

Reply
_AJY
New Member

Filters rows for a certain text and look for other rows that is similar from another column

Hi, Sorry if the subject is confusing. So I have a table that looks like this

EmailDateResult
User1Jan-23High
User1Feb-23Medium
User2Jan-23Medium
User2Feb-23Medium
User2Mar-23Low
User3Mar-23High
User4Feb-23Low
User5Feb-23High
User5Mar-23Low

and I want to create a calculated column that will get the date if that User has any "Low" result on the other month and leave it blank if there is no "Low" result on any of that user's record.

EmailDateResultNew Calculated column
User1Jan-23High 
User1Feb-23Medium 
User2Jan-23MediumJan-23
User2Feb-23MediumFeb-23
User2Mar-23LowMar-23
User3Mar-23High 
User4Feb-23LowFeb-23
User5Feb-23HighFeb-23
User5Mar-23LowMar-23


Still new to PowerBi so I've been having a hard time implementing this as filtering the "Low" results only would disregard the previous records that I need to show as well.

1 REPLY 1
barritown
Super User
Super User

Hi @_AJY,

Here is one of the options how to solve your problem:

barritown_0-1684226594352.png

Here is the [DAX] code in the text format for convenience:

New Calculated Column = 
VAR CurrentUser = [Email]
VAR CountLow = COUNTX ( FILTER ( ALL ( data ), AND ( data[Email] = CurrentUser, data[Result] = "Low" ) ), data[Result] ) + 0
RETURN IF ( CountLow > 0, [Date], BLANK () )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

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.

Top Solution Authors