Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all,
I have a large sales table (sample below) with sales lines for the last 5 years.
       
I need to calculate average hourly sales per year so I can have multiple lines in a visual such as the one below:
      
Solved! Go to Solution.
You didn't specify if you want this per order or per line item. I assumed the former.
Here you are. Let me know if you need additional info.
Hard one @talespin. This is a huge model and requires lot of work...
Will try to provide a similar one, hopefully soon.
Not sure if the last one was the latest version @talespin .
Pls download this https://we.tl/t-nGsshiJaP9
Thank you @lbendlin, worked perfectly.
I also created a similar measure per day.
Sounds good. What have you tried and where are you stuck?
Thanks for asking @lbendlin .
Tried using Sales Avg Hourly = AVERAGEX( VALUES( 'Time Table'[Hour] ), [SALES] ) where
What I get in line chart, shows Total Sales (the sum of sales) instead of the average.
Here is the above as table:
Could it be that a miss something about hte context?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |