Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.