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.
Hi,
I am looking for the correct DAX so my measure brings out the total based on what the user has selected in slicers.
If > 1 Product A is selected then base measure on just Product A,
Else If > 1 Product B by Product B,
Else If > 1 Product C by Product C
Else Product D
TIA
Solved! Go to Solution.
@DW868990
The function you need to use for that is ISINSCOPE .
Check out this video (top right on the page) and doc:
https://dax.guide/isinscope/
@DW868990
The function you need to use for that is ISINSCOPE .
Check out this video (top right on the page) and doc:
https://dax.guide/isinscope/
@DW868990 , If slicer table is joined with table or slcier is part of the table then these should get filtered.
If those are not joined you can try treatas - https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/
if you want based selection value
Switch(true() ,
selectedvalue(Table[Product]) = "Product 1" , [Measure1] ,
selectedvalue(Table[Product]) = "Product 2" , [Measure2] ,
selectedvalue(Table[Product]) = "Product 3" , [Measure3] ,
selectedvalue(Table[Product]) = "Product 4" , [Measure4] )
Check if you need field parameters
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |