This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello,
I am attempting to compare individual performance against the average performance of a group using a line chart.
However I want the user to be able to deselect certain people, to filter out unwanted data. The idea is the list of people will be selected in the slicer, their stats will appear in the table. Selecting a name from the table will filter the line chart to that person's stats. Example included.
However, now I've selected the employee to review, I'd like to create an Average line across the other 3 employees who were chosen in the slicer, but are not currently selected. I cannot use ALL() or REMOVEFILTERS() on the [First Name] column since doing so would include Josh.
Is there some way to remove the "Included (1)" filter from the table, while keeping the rest? Or is there a better approach to what I am trying to do?
Thanks!
Solved! Go to Solution.
Disconnected tables are your friend here. I'm not 100% sure what your data looks like behind all of it, but here's my setup -
(btw there's no relationship between the tables)
I put Name[Name] in a slicer, I then create 2 measures:
All selected names = CONCATENATEX(ALLSELECTED(Names[Name]), Names[Name], ", ") // this is all the names selected in the slicerexcluding slicer Names = CONCATENATEX(EXCEPT(ALLSELECTED('Names'[Name]), ALLSELECTED('Names (2)'[Name])), 'Names'[Name], ", ")
which gives the following result:
instead of using concatenatex, you could save the values in a variable, and use them as calculate filter arguments.
Disconnected tables are your friend here. I'm not 100% sure what your data looks like behind all of it, but here's my setup -
(btw there's no relationship between the tables)
I put Name[Name] in a slicer, I then create 2 measures:
All selected names = CONCATENATEX(ALLSELECTED(Names[Name]), Names[Name], ", ") // this is all the names selected in the slicerexcluding slicer Names = CONCATENATEX(EXCEPT(ALLSELECTED('Names'[Name]), ALLSELECTED('Names (2)'[Name])), 'Names'[Name], ", ")
which gives the following result:
instead of using concatenatex, you could save the values in a variable, and use them as calculate filter arguments.
Great! Got it working, and learned something new. Thank you!
And to any that come looking at this in the future, to make this work with a measure I did this:
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 20 | |
| 20 |