Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi,
I found a great video on youtube how to use a measure on a slicer.
https://www.youtube.com/watch?app=desktop&v=8Nt6sHJE_RE
It's working fine and really simple to set up, but anyone an idea how you would need to change that to filter on a Value from - Value to?
Now it's always value <= selectedvalue, but I would like to have Min(selectedvalue) >= value <= Max(selectedvalue)
Thx,
Susan
Solved! Go to Solution.
Hey @Anonymous ,
as you need two values from the slicer (min and max), you have to use ALLSELECTED and then get the min and max.
Try the following approach:
Sales Between =
VAR vSelected = ALLSELECTED(Slicer[MySlicer])
VAR vMin = CALCULATE(MIN(Slicer[MySlicer]), vSelected)
VAR vMax = CALCULATE(MAX(Slicer[MySlicer]), vSelected)
VAR vCurrentSales = SUM(FactTable[Values])
RETURN
SWITCH(
TRUE(),
vCurrentSales > vMin && vCurrentSales <= vMax, vCurrentSales,
BLANK()
)
Hey @Anonymous ,
as you need two values from the slicer (min and max), you have to use ALLSELECTED and then get the min and max.
Try the following approach:
Sales Between =
VAR vSelected = ALLSELECTED(Slicer[MySlicer])
VAR vMin = CALCULATE(MIN(Slicer[MySlicer]), vSelected)
VAR vMax = CALCULATE(MAX(Slicer[MySlicer]), vSelected)
VAR vCurrentSales = SUM(FactTable[Values])
RETURN
SWITCH(
TRUE(),
vCurrentSales > vMin && vCurrentSales <= vMax, vCurrentSales,
BLANK()
)
great THX!
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
20 | |
13 | |
10 | |
10 | |
8 |
User | Count |
---|---|
20 | |
14 | |
9 | |
7 | |
7 |