Forum Discussion
Visualising Previous Hour Average Via Scorecard (not table)
Hi Everyone,
I've been trying to visualise variance in previous hour sales vs. this hour sales through a scorecard. I've figured out how to get previous hour sales, but it seems to only work when i visualise it using a table. When i use a scorecard, i keep getting BLANKS.
This is what i'm using to get previous hour sales.
| Time | AVG Sales This Hour | AVG Sales Last Hour |
| 9:00:20 | 26.5 | |
| 9:15:20 | 26.5 | |
| 9:30:20 | 26.5 | |
| 9:45:20 | 26.5 | |
| 10:00:20 | 31.0 | 26.5 |
| 10:15:20 | 31.0 | 26.5 |
| 10:30:20 | 31.0 | 26.5 |
Anonymous ,
In case you need it as a column
Column = AVERAGEX(FILTER('Table',HOUR('Table'[Time]) = HOUR(EARLIER('Table'[Time]))-1),[AVG Sales This Hour])As measure
Measure = AVERAGEX(FILTER(ALLSELECTED('Table'),HOUR('Table'[Time]) = HOUR(max('Table'[Time]))-1),[AVG Sales This Hour])File Attached after Signature
Anonymous , I just updated with measure and the file. File Attached after Signature
4 Replies
- amitchandak
Super User
Anonymous ,
In case you need it as a column
Column = AVERAGEX(FILTER('Table',HOUR('Table'[Time]) = HOUR(EARLIER('Table'[Time]))-1),[AVG Sales This Hour])As measure
Measure = AVERAGEX(FILTER(ALLSELECTED('Table'),HOUR('Table'[Time]) = HOUR(max('Table'[Time]))-1),[AVG Sales This Hour])File Attached after Signature
- AnonymousNot applicable
amitchandak Thanks Amit, do you know a way to do it with a measure? i'm not able to create a column due to the nature of the data (realtime). It doesn't get saved as it's a live connection so i can only work with measures.
- amitchandak
Super User
Anonymous , I just updated with measure and the file. File Attached after Signature