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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
NickKramerGU
Regular Visitor

ISNOT LOOKUPVALUE

Hi,

 

Can you also use an "IS NOT" function for LOOKUPVALUE? I am trying to return a value when the status in the column is not matching the input. See the example: 

 

Values present in Column2

Active

Paused

Stopped

 

LOOKUPVALUE(TableA[Column1], TableA[Column2], ISNOT"Stopped")

 

But this is not working because the ISNOT is obviously not a function but also <> or ! is not helping. 

 

Any suggestions?

 

Thanks in advance. 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @NickKramerGU 

Thanks for reaching out to us.

 

You can try the function Related(),

e.g.

FILTER( 'InternetSales_USD', RELATED('SalesTerritory'[SalesTerritoryCountry])<>"United States")
FILTER('InternetSales_USD'
, 'InternetSales_USD'[SalesTerritoryKey]<>1 && 'InternetSales_USD'[SalesTerritoryKey]<>2 && 'InternetSales_USD'[SalesTerritoryKey]<>3 && 'InternetSales_USD'[SalesTerritoryKey]<>4 && 'InternetSales_USD'[SalesTerritoryKey]<>5)

 

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

4 REPLIES 4
v-xiaotang
Community Support
Community Support

Hi @NickKramerGU 

Hope you are doing well.

Can we close this thread now if there is no other question? It would be nice if you can accpet my answer as the solution. Thanks 🙂

 

Best Regards,

Community Support Team _Tang

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

v-xiaotang
Community Support
Community Support

Hi @NickKramerGU 

Thanks for reaching out to us.

 

You can try the function Related(),

e.g.

FILTER( 'InternetSales_USD', RELATED('SalesTerritory'[SalesTerritoryCountry])<>"United States")
FILTER('InternetSales_USD'
, 'InternetSales_USD'[SalesTerritoryKey]<>1 && 'InternetSales_USD'[SalesTerritoryKey]<>2 && 'InternetSales_USD'[SalesTerritoryKey]<>3 && 'InternetSales_USD'[SalesTerritoryKey]<>4 && 'InternetSales_USD'[SalesTerritoryKey]<>5)

 

 

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@NickKramerGU , Try like a new column like

maxx(filter(TableA, TableA[Column2] <> "Stopped") ,TableA[Column1])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit,

 

Don't think this is what I need. Perhaps I need to be more precise. I am using LOOKUPVALUE filtering on multiple columns like below:

 

NewColumn= LOOKUPVALUE(TableA[Column3], TableA[Column1], TableB[ColumnS], TableA[Column2], <> "Stopped")
 
But the function does not allow <>
 
Thanks for your help

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.