cancel
Showing results for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

## Slicer and Average of sum of two columns

Hello BI Community, newbie here!

I have a hobby, I play a game of extremly dangerous bio-mutated war ants. I'm collecting battle data and doing a report of it. Data is simple, it's on one table:

I've come this far:

Total damage = Skill Dmg + Unit Dmg:

``Dmg Total = SUM([Dmg Skills]) + SUM([Dmg Unit])``

Front is a slicer affecting all cards on right and also slicer Special Ant.

Special Ant affects all cards on right. It is a calculated column:

``Special Ant = [SA] & " - " & [stars]``

Everything is working except slicing Avg Total Damage and Max Total Damage. Values stay as average and max of whole data set regardless of slicer choices. Code:

``Dmg Total Avg = AVERAGEX(ALL('Attack'), [Dmg Total])``
``Dmg Total Max = MAXX(ALL('Attack'), [Dmg Total])``

What might be wrong with this?
Big thanks to all in advance 🙂

1 ACCEPTED SOLUTION
Community Support

Hi @Kaptah ,

ALL in the two measures will make them ignore the slicers in "Attack" table. Try to use ALLSELECTED.

Best Regards,

Icey

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 REPLIES 2
Community Support

Hi @Kaptah ,

ALL in the two measures will make them ignore the slicers in "Attack" table. Try to use ALLSELECTED.

Best Regards,

Icey

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Frequent Visitor

Anyone there?

I changed the Special Ant slicer to hierarchy, still not slicing.

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors