Power BI daily average calculation

duranimal86

New Member
Joined
Jul 24, 2019
Messages
18
Office Version
  1. 365
Platform
  1. Windows
I am creating a dashboard to display some calculated metrics. I have a detail with thousands of lines of submitted invoices. I have pulled out the Creation Dates, User, and the number of invoices submitted (by day and user), and I am trying to do some user level comparisons. I have been able to calculate the average # of invoices per day (# of invoices submitted/# of users submitting invoices) and I have that shown in a matrix that has the average for the day, but each user line just has their # of invoices. My end goal is to compare the # of invoices submitted by each user to the average for the date, either in the same calculated column or separately, but i can't figure out the right formula.
Currently I have:
1707188140468.png


I would like to get to something below where I can calculate the user # for the day minus the average for the day:
1707188587234.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi
something like....

Daily Average := Countrows(Table1)/Distinctcount(Table1[User])
Diff := [Daily Average]- Calculate(Daily Average, all(Table1[User])
 
Upvote 0
Hi
something like....

Daily Average := Countrows(Table1)/Distinctcount(Table1[User])
Diff := [Daily Average]- Calculate(Daily Average, all(Table1[User])
Hello,
Thank you for your reply.
The Diff calculation is close, but for some reason it is 1 higher than it should be on some days, but on others it is correct? Also, it brought in all of the users to the matrix, including the ones that didn't have invoices for that date.
1707239097645.png


1707239918322.png
 
Upvote 0

Forum statistics

Threads
1,215,752
Messages
6,126,672
Members
449,327
Latest member
John4520

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top