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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
Super User
Super User

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!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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

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!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 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.

Top Solution Authors