Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 🙂
Solved! Go to Solution.
Hi @Kaptah ,
ALL in the two measures will make them ignore the slicers in "Attack" table. Try to use ALLSELECTED.
Reference: Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
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 @Kaptah ,
ALL in the two measures will make them ignore the slicers in "Attack" table. Try to use ALLSELECTED.
Reference: Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anyone there?
I changed the Special Ant slicer to hierarchy, still not slicing.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |