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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RoyClerc
New Member

Filtering in a visual (excluding cases) based on values in another column

Hi,

 

I work in logistics and I am working on a visual for our inbounds department, so they can quickly see which locations are empty (so new products can be placed at this spot). 

 

I have two variables:

Location (Systemwide) - Contains all locations that we have within our system (at which products are currently or can be placed). 

Stock Location - Contains the locations our stock is located at, meaning that only locations that currently have stock, are displayed in this column.

 

For the visual I want (displaying only the empty locations), this would mean that I would have to calculate a new column based on these two locations. That is; I want values that are positioned in both columns (Location & Stock Location), to be assigned a 1, and values that are positioned in only one column (Location) to be assigned a 0. This would mean that I could filter one of these out and be left with only the empty locations.

 

I have no idea how to start on this, however. So any help would be greatly appreciated. If anything is unclear, please feel free to ask below. 

 

Thanks in advance!

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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