Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Good day all,
There is some challenge to get the right slicers to filter my data. In my dataset there are contracts for transporters to where they will load (LD) or deliver (DL) a order. In one contract there can be more load or delivery locations. I'll put an example below:
Contract | Location | load or delivery |
101 | NLD | LD |
101 | NLD | DL |
101 | BEL | LD |
102 | UK | DL |
102 | UK | DL |
Above is an example dataset. For contract 101 there will be a load in BEL and NLD and a delivery in NLD. This are not if's, they are fixed deliveries and loads. So if we book contract 101 we have those three steps. If we need less then those three steps to complete the requested transport, we will simply book by another contract containing the needed steps.
My issue is:
I want the user to select on what locations he/she needs to book an order, and then see all the possible contracts that can arrange that transport. The thing is, when I select for example NLD in the slicer, the dataset will be filtered for NLD en therefore the rows with BEL will disapear. Is there a way to filter multiple rows.
The only thing I can think of is to have the user select the locations in 1 slicer but this will result in an OR filtering. If the user selects NLD and BEL in de slicer(s) I need to only show options of contracts that contain both those values. Also If there are three NLD locations in one contract the user need to select it three times.
If you may have a solution, please feel free to assist me!
Thank you in advance! 🙂
Solved! Go to Solution.
Hi @bnjmnnl ,
The logic in the attached sample pbix checks whether the load and delivery slicer selections match the locations in the fact table.
Proud to be a Super User!
Hi @bnjmnnl ,
The logic in the attached sample pbix checks whether the load and delivery slicer selections match the locations in the fact table.
Proud to be a Super User!
Hi @bnjmnnl ,
Analyzing what you wrote, you want the user to be able to select Load or Delivery Location and see all contracts that apply to a given location.
Proposed solution:
1. I would bring the table to this form. Thanks to this, you have a simple division of where to deliver from.
2. To achieve the effect you mentioned, you need to have two additional tables that will be such a dictionary - a combination of the contract and load location or delivery location.
Load Location:
Delivery Location:
3. Having these two tables, you should connect them via Contract ID to the main table.
4. And then create two slicers that will help the user find the right order.
_____
Memorable Member | Former Super User If I helped, please accept the solution and give kudos! |
I find these statements contradicting:
Or do you mean, you want to find a contract that contains the locations based on slicer selection. For example if the user selects NLD but not BEL then there's no match unless BEL is selected as well?
Proud to be a Super User!
It's a standard "Filtering up" pattern.
What you really want is when your user chooses "NLD" you want to look up which contracts contain NLD, and then show all the countries for these contracts.
This requires a disconnected table to feed the country slicer, and a measure as a visual filter.
The result should be:
User selects Loading in NLD, user gets all the contracts that contain a option with loading in NLD.
If user selects delivery in NLD and delivery in BEL, user only gets contracts that cointain a delivery in NLD AND in BEL. All the options that only have NLD will not be shown.
But the two issues I'm facing now are:
If I let the user select both locations in 1 slicer, it will function as an OR statement. So he will get all the option with NLD or BEL or both.
If I let the user use two or more slicers, all the data will be filtered through the first slicer. So if the user uses the first slicer to put NLD there will be no data left to filter a BEL contract. Did I explain this well enough? If not please ask me!
If user selects delivery in NLD and delivery in BEL, user only gets contracts that cointain a delivery in NLD AND in BEL.
There is a conflict between natural language and programming language. In programming speak this is
in NLD OR in BEL
In Power BI all filters inside a column are OR filters (equivalent of "IN list"), but across columns they are always AND filters (applied on top of each other). You need to spend extra effort to make filters across columns behave in OR fashion. And you need to spend extra effort if you want the filters inside a column to be treated as AND.
A transport arranged can have multiple delivery locations and do not need a loading for that. But the user needs to be able to select Delivery in NLD & BEL & IRL for example to get the result of all the contracts that contain all those locations for delivery. He/she then can check for the preferred option.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
88 | |
73 | |
64 | |
60 |