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
AllanBerces
Post Prodigy
Post Prodigy

Containssting

Hi can anyone correct my calculated column, coz still show value suposedly not. What i required is only with the word OVERDUE

 

OverdueSummary =
VAR IsStatusOverdue = CONTAINSSTRING('Combined'[Status], "OVERDUE")
VAR IsLoadoutOverdue = CONTAINSSTRING('Combined'[Loadout], "OVERDUE")

RETURN
IF(
IsStatusOverdue || IsLoadoutOverdue,
"OVERDUE",
BLANK()
)

AllanBerces_1-1781147816924.png

Thank you

2 ACCEPTED SOLUTIONS
InsightsByV
Skilled Sharer
Skilled Sharer

Hi,

 

You can use: 

 

OverdueSummary =
VAR StatusValue = TRIM(UPPER('Combined'[Status]))
VAR LoadoutValue = TRIM(UPPER('Combined'[Loadout]))
RETURN
IF(
    StatusValue = "OVERDUE" || LoadoutValue = "OVERDUE",
    "OVERDUE",
    BLANK()
)

 

Let me know if that worked.

 

If this helped, mark this answer as a solution. Kudos are appreciated!

View solution in original post

Kedar_Pande
Super User
Super User

@AllanBerces 

 

OverdueSummary = 
VAR IsStatusOverdue = COALESCE(CONTAINSSTRING('Combined'[Status], "OVERDUE"), FALSE)
VAR IsLoadoutOverdue = COALESCE(CONTAINSSTRING('Combined'[Loadout], "OVERDUE"), FALSE)
RETURN IF(IsStatusOverdue || IsLoadoutOverdue, "OVERDUE", BLANK())


If rows still show wrong, your source text likely has extra spaces. Wrap each column in TRIM:

CONTAINSSTRING(TRIM('Combined'[Status]), "OVERDUE")


If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

@AllanBerces 

 

OverdueSummary = 
VAR IsStatusOverdue = COALESCE(CONTAINSSTRING('Combined'[Status], "OVERDUE"), FALSE)
VAR IsLoadoutOverdue = COALESCE(CONTAINSSTRING('Combined'[Loadout], "OVERDUE"), FALSE)
RETURN IF(IsStatusOverdue || IsLoadoutOverdue, "OVERDUE", BLANK())


If rows still show wrong, your source text likely has extra spaces. Wrap each column in TRIM:

CONTAINSSTRING(TRIM('Combined'[Status]), "OVERDUE")


If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

InsightsByV
Skilled Sharer
Skilled Sharer

Hi,

 

You can use: 

 

OverdueSummary =
VAR StatusValue = TRIM(UPPER('Combined'[Status]))
VAR LoadoutValue = TRIM(UPPER('Combined'[Loadout]))
RETURN
IF(
    StatusValue = "OVERDUE" || LoadoutValue = "OVERDUE",
    "OVERDUE",
    BLANK()
)

 

Let me know if that worked.

 

If this helped, mark this answer as a solution. Kudos are appreciated!

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.