Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi - I have a DAX weighted average formula that works without a slicer.
When I add a slicer for Markets the DAX continues to calculate at the All Markets level versus the market level.
Can you help me adjust my DAX to consider the slicer?
Hi, @Quinnie2017
It‘s not clear that the field on the slicer is on which table. You can try to use allselected() function in the formula involving that table.
Like this:
Weighted Avg Impact =
SUMX (
SUMMARIZE ( ALLSELECTED ( 'Day Key' ), 'Day Key'[KBP PD] ),
DIVIDE (
CALCULATE ( [Avg Impact] * COUNTA ( MASTER[Store] ), ALLSELECTED ( 'MASTER' ) ),
CALCULATE (
COUNT ( 'Cost Center'[Cost_CenterKey] ),
'Cost Center'[CC Type] = "Store",
ALLSELECTED ( 'Cost Center' )
)
)
)
[Avg Impact] seems to be a measure, it may also need to change.
If it doesn't solve your problem, Can you share a sample file and feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |