Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
Hi, recently I have a very complicate problem,
here is the data and relative slicers:
when I select values from slicer1, sum the value from cal1,
and when I select values from slicer2, sum the value from cal2,
when I select both slicer1 and slicer2, sum the value from cal1.
so how can I create such a calculation get the result value, do you have any good ideas?
Thank you.
Solved! Go to Solution.
@Anonymous , Isfiltered can help
Measure =
var _1 = calculate(isfiltered(Dim1[Col]), allselected())
var _2 = calculate(isfiltered(Dim2[Col]), allselected())
return
Switch(True(),
_1 && _2 , [Cal1] ,//assume cal1 and cal2 are measures
_1 , [Cal1] ,
_2 , [Cal2]
)
@Anonymous , Isfiltered can help
Measure =
var _1 = calculate(isfiltered(Dim1[Col]), allselected())
var _2 = calculate(isfiltered(Dim2[Col]), allselected())
return
Switch(True(),
_1 && _2 , [Cal1] ,//assume cal1 and cal2 are measures
_1 , [Cal1] ,
_2 , [Cal2]
)
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 14 | |
| 11 | |
| 10 | |
| 9 |