Forum Discussion
Changing code to reference a slicer?
- 4 years ago
Hi WestWinter ,
According to your description, field and value are all in tableA, you want the measure filtered by the field slicer, you don’t need to write TableA[field]=””, just put field in slicer, it automatically works.
ExposureA = CALCULATE ( SUM ( 'TableA'[Value] ), FILTER ( 'TableA', 'TableA'[ID] = MAX ( 'TableB'[ID] ) ) )Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi WestWinter ,
According to your description, field and value are all in tableA, you want the measure filtered by the field slicer, you don’t need to write TableA[field]=””, just put field in slicer, it automatically works.
ExposureA =
CALCULATE (
SUM ( 'TableA'[Value] ),
FILTER ( 'TableA', 'TableA'[ID] = MAX ( 'TableB'[ID] ) )
)
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.