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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
barragan82
Helper II
Helper II

Measure for Generating Custom Text

Hi all,

 

I am trying create a measure that will generate a specific word, “Meets”, when certain values are present. In Column “Grade”, there are four possible values: A, B, C and D. I would like the word “Meets” to generate when A and/or B are present, even if C or D are present as well. However, if only C and/or D are present, I would like a blank return.

 

For example, when I filter by column “Name” and A and C are present, I would like the word “Meets” to appear. If I continue to filter by Name and only C and D are present, I would like a blank value.

 

Thank you all for your help!!

1 ACCEPTED SOLUTION
MasonMA
Super User
Super User

@barragan82 

 

Hi, if each row has only one grade value A, B, C, or D, try measure below and 'Show items with no data' for Names. 

Measure=
IF (
CALCULATE ( COUNTROWS ( FILTER ( Table, Table[Grade] IN { "A", "B" } ) ) ) > 0,
"Meets"
)

MasonMA_2-1758311747324.png

 

 

View solution in original post

2 REPLIES 2
MasonMA
Super User
Super User

@barragan82 

 

Hi, if each row has only one grade value A, B, C, or D, try measure below and 'Show items with no data' for Names. 

Measure=
IF (
CALCULATE ( COUNTROWS ( FILTER ( Table, Table[Grade] IN { "A", "B" } ) ) ) > 0,
"Meets"
)

MasonMA_2-1758311747324.png

 

 

@MasonMA , you came through again! Worked exactly as I wanted. Thank you!!!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.