Forum Discussion
Slicing with measures
- 3 years ago
Hi wshalex123
Please try:
DurchschnittMEHRA = CALCULATE((DIVIDE(sum(_detaillierte_Tagesarbeitszeit[Kalk. GlidiingTimeBalanceNurPositiv]),DISTINCTCOUNT(_detaillierte_Tagesarbeitszeit[Employee])),ALL(_detaillierte_Tagesarbeitszeit))Best regards,
Yadong Fang
Hi wshalex123 ,
This is my test table:
Please try following DAX to create an average measure, so you don't need to disabled interaction, the measure will always show the average of overtime hours.
Average of overtime = CALCULATE(AVERAGE('Table'[Overtime hours]),ALL('Table'))
Create another measure:
Conditional formatting =
var overtime = SELECTEDVALUE('Table'[Overtime hours])
return
IF( overtime > [Average of overtime],"Green")
Conditional formatting for card visual:
I think this is the result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
OK at least got no error now:
- v-yadongf-msft3 years ago
Community Support
Hi wshalex123
Please try:
DurchschnittMEHRA = CALCULATE((DIVIDE(sum(_detaillierte_Tagesarbeitszeit[Kalk. GlidiingTimeBalanceNurPositiv]),DISTINCTCOUNT(_detaillierte_Tagesarbeitszeit[Employee])),ALL(_detaillierte_Tagesarbeitszeit))Best regards,
Yadong Fang
- wshalex1233 years ago
Helper III
Hi v-yadongf-msft,
it's still slicing...
DurchschnittMEHRA = CALCULATE(DIVIDE(sum(_detaillierte_Tagesarbeitszeit[Kalk. GlidiingTimeBalanceNurPositiv]),DISTINCTCOUNT(_detaillierte_Tagesarbeitszeit[Employee])),ALL(_detaillierte_Tagesarbeitszeit[Employee]))The value should be 85,58 (left white visual)- v-yadongf-msft3 years ago
Community Support
Hi wshalex123 ,
Please note:
DurchschnittMEHRA = CALCULATE((DIVIDE(sum(_detaillierte_Tagesarbeitszeit[Kalk. GlidiingTimeBalanceNurPositiv]),DISTINCTCOUNT(_detaillierte_Tagesarbeitszeit[Employee])),ALL(_detaillierte_Tagesarbeitszeit))
If it still doesn't work, please share with me some data screenshots.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.