Forum Discussion
DAX for Average Calculation
- 3 years ago
Hi Anonymous ,
According to your description, if you want to show the percentage of people who are in office each day, here's my solution.
Sample:
Create a measure:
Measure = VAR _IO = CALCULATE ( DISTINCTCOUNT ( Register[Agent Name] ), 'Register'[Status] = "IO" ) VAR _Total = DISTINCTCOUNT ( Register[Agent Name] ) RETURN DIVIDE ( _IO, _Total )Get the result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your description, if you want to show the percentage of people who are in office each day, here's my solution.
Sample:
Create a measure:
Measure =
VAR _IO =
CALCULATE ( DISTINCTCOUNT ( Register[Agent Name] ), 'Register'[Status] = "IO" )
VAR _Total =
DISTINCTCOUNT ( Register[Agent Name] )
RETURN
DIVIDE ( _IO, _Total )
Get the result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.