Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys would really need your help cause i don't know how to solve the following problem :
Today i have a data model with approximately 20 tables :
All this part is OK up to now and is working .
Now the new challenge is : I have a new Staffing Needs table which contains demand of people with certain skills (ex : we are looking for a guy that knows Php AND java AND .net and another demand with a guy that knows C++)
Today the Staffing Needs table looks like this
Demand Id | Skills | Rating(1= basic knowledge ,2 =expert) |
1 | php | 1 |
1 | java | 1 |
1 | .net | 2 |
2 | php | 1 |
2 | C++ | 2 |
what i d like to do is :
1) having a visual listing all demands so for example a table like (it's straightforward it's just to explain the behavior 🙂
demand id | summary |
1 | one guy with php and java and.net skill |
2 | one guy with C++ skill |
2) a date slicer to choose the starting date ( ie filter guys that will be available after the selected date based on the WhenFree table)
3) The tricky part : when i select a line in the first visual then the second visual table is filtered accordingly . This second visual lists ONLY the name & email of available employees (based on the date slicer) that have ALL the skills required for the demand selected ( in the case i select demand id = 1=> then i want to see ONLY people having ALL the 3 skills and not only one of the skill).
I m really stucked any help would be deeply appreciated 🙂
regards
Renaud
Solved! Go to Solution.
have you managed to solve your issue?
If not, you can create a measure like this:
Measure =
VAR _skills =
CALCULATETABLE ( VALUES ( demands[skill] ) )
VAR _matchingSkills =
INTERSECT ( _skills, VALUES ( skills[skill] ) )
RETURN
IF ( COUNTROWS ( _matchingSkills ) = COUNTROWS ( _skills ), 1, 0 )
and use this measure in the filter pane(setting Measure is 1) of the table visualization of the employees.
I have attached the mock-up file I created to demonstrate.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @sturlaws many thanks as your solution is working great and your explanations and examples are perfect !! sorry not to answer quickly ( i was on vacation 😃 )
Hi @renaudstaessens ,
You may create measure like DAX below, then put measure Filter1 in the Visual Level Filter of Table visual which is displaying Nane, Email and Skills of employees , and setting the Filter1 as "is not blank"
Filter= IF( MAX('Skills'[Skill]) IN FILTERS('Staffing Need'[Skills] ), 1, BLANK() )
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-xicai thanks or your answer but it seems not to work 🤔...
I created 2 visual tables . the first one (the one that contains skills demand) . the second one which lists the email of the guy that are supposed to have all required skills correponding to a demand. Please note that this second visual doesn't list the skills only the email of the guy (otherwise i can have several lines for one single guy and i don't want to. I added the visual filter the way you mentionned to the 2nd visual ( it's in french but means not blank).
Whatever row i select in the first one ( whatever demand i select ) i always have the 24 same results . so the list of people display do not depend on the skills needed for the demand selected ... Not sure to catch the logic of your measure. could you explain in few words ? ( i don't understand why you are a doing a max...)
have you managed to solve your issue?
If not, you can create a measure like this:
Measure =
VAR _skills =
CALCULATETABLE ( VALUES ( demands[skill] ) )
VAR _matchingSkills =
INTERSECT ( _skills, VALUES ( skills[skill] ) )
RETURN
IF ( COUNTROWS ( _matchingSkills ) = COUNTROWS ( _skills ), 1, 0 )
and use this measure in the filter pane(setting Measure is 1) of the table visualization of the employees.
I have attached the mock-up file I created to demonstrate.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @sturlaws many thanks as your solution is working great and your explanations and examples are perfect !! sorry not to answer quickly ( i was on vacation 😃 )
it seems that i wrongly accept my comment to your solution as the solution 😞 . Sorry it is the first time i accept a solution . I also accepted your own but didn't find a way to remove the first approval . Once again many many thanks for your great help!!! i ll check how to give "kudos"
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |