# How to calculate the YTD Average in Power BI

#### ypurcaro

##### New Member
Hi,
I'm very new to Power Bi and I learn that from Youtube. I am stuck with the YTD Average. If it was in Excel, it's easy - =Average (), But, in Power Bi, it's a bit complicate.

I have two table, one is custom build calendar table - 445 calendar. And a fact table. The fact table looks something like below. Now, I have created a measure for both shipped and received to find out the total of these week. So, how do I find out the average of we shipped and received within these three days? And how about the YTD total? The YTD for shipped is 4 and the received is 5 from May 1 to May 3. Can anybody help me or refer me to a site that has similar calculation? Thank you in advance.
 Posting Date Movement Type Reference Number 5/1/2021 Shipped 7501 5/1/2021 Shipped 7502 5/1/2021 Received 4501 5/2/2021 Received 4502 5/2/2021 Received 4503 5/3/2021 Shipped 7503 5/3/2021 Shipped 7503

### Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

#### GraH

##### Well-known Member
Learning all about PowerBI simply on YouTube is a bit of a stretch in my opinion. One needs to understand basic principles of data modelling, context, table relationships,... I would advice to also read books, you can use as a reference. @Matt Allington , Avi Singh, Rob Collie, Alberto Ferrari & Marco Russo (aka 'the Italian connection', thé references), just to name a few. The last ones quoted have an example dax pattern on almost everything on their website.

Replies
0
Views
237
Replies
3
Views
113
Replies
0
Views
87
Replies
0
Views
283
Replies
2
Views
158

1,136,864
Messages
5,678,210
Members
419,751
Latest member
richkings

### 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.

### Which adblocker are you using?

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

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