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
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, I created an example of this. Hope this helps.
1. Create a Slicer Table which is independent of the other table.
Slicer Table = VALUES(Shop[Shop])Or, you can just use "Enter Data".
2. Create a measure.
Value Measure =
VAR SelectedValue =
SELECTEDVALUE ( 'Slicer Table'[Shop] )
VAR CurrentValue =
MAX ( Shop[Shop] )
RETURN
IF (
ISBLANK ( SelectedValue ),
SUM ( Shop[Value] ),
IF (
SelectedValue = "A",
CALCULATE (
SUM ( Shop[Value] ),
FILTER ( Shop, Shop[Shop] = "A" || Shop[Shop] = "B" )
),
IF (
SelectedValue = CurrentValue,
CALCULATE ( SUM ( Shop[Value] ), FILTER ( Shop, Shop[Shop] = CurrentValue ) )
)
)
)Then, you can get this:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, I created an example of this. Hope this helps.
1. Create a Slicer Table which is independent of the other table.
Slicer Table = VALUES(Shop[Shop])Or, you can just use "Enter Data".
2. Create a measure.
Value Measure =
VAR SelectedValue =
SELECTEDVALUE ( 'Slicer Table'[Shop] )
VAR CurrentValue =
MAX ( Shop[Shop] )
RETURN
IF (
ISBLANK ( SelectedValue ),
SUM ( Shop[Value] ),
IF (
SelectedValue = "A",
CALCULATE (
SUM ( Shop[Value] ),
FILTER ( Shop, Shop[Shop] = "A" || Shop[Shop] = "B" )
),
IF (
SelectedValue = CurrentValue,
CALCULATE ( SUM ( Shop[Value] ), FILTER ( Shop, Shop[Shop] = CurrentValue ) )
)
)
)Then, you can get this:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can use the SELECTEDVALUE DAX formula to use which Shop is selected in your filter.
Your dax formula would look something like
yourMeasure = IF(SELECTEDVALUE('table'[SHOPNAME]) = "Shop A", ResultIfTrue, ResultIfNotTrue)
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.