March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I want to calculate group average training duration that count total per group not per position.
I try use ALLEXCEPT Dax but not work
Solved! Go to Solution.
@laurent_rio , if you want other filters to work
Group Average Duration/Staff = CALCULATE([Duration],filter(allselected(Course_Completion_Listing),Course_Completion_Listing[BU] =max(Course_Completion_Listing[BU]) ))
Yes it works !!! Super Thanks
Hi it seems my DAX not work if i have filter. My filter is Business unit ,
using the formula
@laurent_rio , if you want other filters to work
Group Average Duration/Staff = CALCULATE([Duration],filter(allselected(Course_Completion_Listing),Course_Completion_Listing[BU] =max(Course_Completion_Listing[BU]) ))
Hi @amitchandak
Now the questions if the filter have all selection, it seems this DAX
Group Average Duration/Staff = CALCULATE([Duration],filter(allselected(Course_Completion_Listing),Course_Completion_Listing[BU] =max(Course_Completion_Listing[BU]) ))
Not give expected result
Here for example if i choose 1 BU, the result is OK
But if i choose all BU or multiple BU Selection, i expect the group will show same total average hour/staff
Can you help to modify the DAX so it work for all or multiple BU Selection ?
@laurent_rio , Allexpect will allow that filter to pass, means job Grade filter iwll pass
Try like
Group Average Duration/Staff = CALCULATE([Average Duration/Staff],ALL('Job Grade'[Job Grade]))
or
Group Average Duration/Staff = CALCULATE([Average Duration/Staff],ALLselected ('Job Grade'[Job Grade]))
Group Average Duration/Staff = CALCULATE([Average Duration/Staff],removefilters('Job Grade'[Job Grade]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |