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.
Solved! Go to Solution.
Duh.
First of all, I had named one of my measures wrong - so it wasn't working.
Once I had fixed that, I then created a duplicate measure that addressed the [Head] skills, and then a third measure that compared the two and gave an outcome based on that evaluation.
There's probably a more graceful way to do it, but this way worked.
Hi @Anonymous ,
I create some data:
Here are the steps you can follow:
1. Create calculated table.
Slice = SUMMARIZE('Table','Table'[Sub])
2. Create measure.
Flag =
var _selected=SELECTEDVALUE(Slice[Sub])
var _first=CALCULATE(MIN('Table'[Hear]),FILTER(ALL('Table'),[Sub]=_selected))
return
IF(MAX('Table'[Hear]) = _first,1,0)
3. Place Measure[Flag] in Filters, set is = 1, and Apply filter.
4. Use [Sub] of the Slice table as the slicer
5. Result:
Select B, it will display all the information of B1 in [Hear] corresponding to [Country]
If the result does not meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Okay, I think the simplest way to look at this is my formula works too well at filtering things out.
Duh.
First of all, I had named one of my measures wrong - so it wasn't working.
Once I had fixed that, I then created a duplicate measure that addressed the [Head] skills, and then a third measure that compared the two and gave an outcome based on that evaluation.
There's probably a more graceful way to do it, but this way worked.
Sorry - this doesn't do quite what I want (it produces results quite similar to the one I already have) but I think the issue is not in your response, but in my question and what I am trying to make my sheet do!
Will have a re-think about how to be clearer.
Sorry to add a bit more detail on how this measure works.
Basically, I apply the 'AND slicer' as a filter in the PowerBI, with 'AND slice' is not blank being a criteria that has to be met when displaying results (obviously if I remove this then it reverts to behaving like an OR filter).
Is there another way that people do AND slices, that might allow to retain this functionality, and also expand it to consider entries in other fields (and therefore not require a [sub] entry).
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |