Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm looking to create a slicer filter that works against an aggregated value.
I have the following table where column be in summed in a visual.
And I have a second table with the following groups
If I select 0-5 in the slicer, the visual would filter for only A since the aggregated value is 3.
If I select 11-15, the visual would filter for only C since the aggregated value is 11.
Solved! Go to Solution.
@RobX
Create a table for the group as follows
Group mn mx
0 - 5 | 0 | 5 |
6 - 10 | 6 | 10 |
11 - 15 | 11 | 15 |
Create the following measure and assign it to the visual filter and set it to 1
Group Selected =
var __groupmn = SELECTEDVALUE(tGroup[mn])
var __groupmx = SELECTEDVALUE(tGroup[mx])
var __value = CALCULATE(SUM(T15[Value]))
return
IF(
__value >= __groupmn && __value <= __groupmx,
1,
0
)
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@RobX
Create a table for the group as follows
Group mn mx
0 - 5 | 0 | 5 |
6 - 10 | 6 | 10 |
11 - 15 | 11 | 15 |
Create the following measure and assign it to the visual filter and set it to 1
Group Selected =
var __groupmn = SELECTEDVALUE(tGroup[mn])
var __groupmx = SELECTEDVALUE(tGroup[mx])
var __value = CALCULATE(SUM(T15[Value]))
return
IF(
__value >= __groupmn && __value <= __groupmx,
1,
0
)
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks Fowmy. There was one thing I had to change. When no group is selected, the value was 0 so the charts wouldn't populate. I had to update the if statement to
IF(
__groupmn = Blank() && __groupmx = Blank(),
1,
IF(
__value >= __groupmn && __value <= __groupmx,
1,
0
)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |