Forum Discussion
LeoQ
Helper I
5 years agoAverages with small multiples charts
Hi everybody! I have been trying to solve this for days, but I couldn't find a solution. I have a measure that calculates the average amount of mails answered by agents for day. With that informatio...
- Anonymous5 years ago
Hi LeoQ ,
You can create a measure as below to get it, please find all the details in the attachment.
Conditonal formatting = VAR _averageofperday = CALCULATE ( AVERAGE ( 'Table'[Value] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] ) ) ) VAR _averageofperagent = CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] ) && 'Table'[AGENT] = SELECTEDVALUE ( 'Table'[AGENT] ) ) ) RETURN IF ( _averageofperagent < _averageofperday, "red", "green" )Best Regards
Anonymous
5 years agoNot applicable
Hi LeoQ ,
You can create a measure as below to get it, please find all the details in the attachment.
Conditonal formatting =
VAR _averageofperday =
CALCULATE (
AVERAGE ( 'Table'[Value] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] )
)
)
VAR _averageofperagent =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] )
&& 'Table'[AGENT] = SELECTEDVALUE ( 'Table'[AGENT] )
)
)
RETURN
IF ( _averageofperagent < _averageofperday, "red", "green" )
Best Regards
- LeoQ5 years ago
Helper I
It worked perfectly. Thanks a lot for your time!!