We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
ExposureA =
VAR Output = CALCULATE(SUM(TableA[value]),
FILTER(TableA, TableA[field] = "Asia" && TableA[id] = selectedvalue(TableB[id]))
)
RETURN Output
| field |
| Asia |
| North America |
| Europe |
| Africa |
Solved! Go to Solution.
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.
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.
You should be able to use SELECTEDVALUE just like you do with [id].
ExposureA =
VAR Output =
CALCULATE (
SUM ( TableA[value] ),
FILTER (
TableA,
TableA[field] = SELECTEDVALUE ( SlicerTable[field] )
&& TableA[id] = SELECTEDVALUE ( TableB[id] )
)
)
RETURN
Output
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |