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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
asfasfgasfg
Frequent Visitor

column unknown error

Can anyone explain to me why I can't use this column?

And how I can change the measure?

 

RWS/OWB =

IF ( 'LCM EC EXCEL'[RWS]  <> "RWS" ,
    SUBSTITUTE( 'LCM EC EXCEL'[RWS] , 'LCM EC EXCEL'[RWS] , "OWB") ,
    "RWS" )

 

asfasfgasfg_0-1710936968616.png

 

3 REPLIES 3
asfasfgasfg
Frequent Visitor

anyone?

Anonymous
Not applicable

Hi @asfasfgasfg ,
According to your description and the provided dax logic, you are trying to realize that if "LCM EC EXCEL"[RWS] is null, then this formula will return "OWB", otherwise "RWS ". In your formula, what you are returning after isblank is a boolean value and what you are comparing is a text value. To accomplish this while making sure your data type is text, here is a modification to your dax expression:

RWS/OWB = IF(
    ISBLANK('LCM EC EXCEL'[RWS]),
    "OWB",
    "RWS"
)

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

The column [RWS] is filled with RWS and many other values. I have no null values. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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