Countifs then average in DAX

Acidkill

New Member
Joined
Feb 21, 2010
Messages
9
Hi everyone,

I'm currently transitioning to PowerBi and is in a bit of mess with converting excel formulas to DAX.
I am tryin to get the number times the store_number has appeared each day the get the average number of times it appeared for the month or week.

thank you in advance as this site as been my lifeline since I joined

here is my data sample:
Ticket_NumberFullDateIssue_Store_Number
200158333912/1/1814167
200158338012/1/1813586
200158338312/1/18366
200158342912/1/18214
200158347312/1/1815777
200158349212/1/1819801
200158351312/1/1815311
200158351412/1/189117
200158362812/1/1810310
200158366212/1/1812887
200158368412/1/1817994
200158374212/1/1876
200158375912/1/1813835
200158376512/1/182846
200158378212/1/1813088
200158382912/1/181182
200158383112/1/188899
200158383212/1/189260
<colgroup><col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"> <col width="59" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2157;"> <col width="147" style="width: 110pt; mso-width-source: userset; mso-width-alt: 5376;"> <tbody> </tbody>


<colgroup><col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"><tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi AcidKill,

What is your definition of Average Per month and Per Week. Can you provide the excel formulas you were using?
 
Upvote 0
Hi Hashiru,

Thank you for replying.

it's average number of time the store number has appeared in a given time period like a week or a month. I first created pivot table for the data, then just did the below--Ticket count monthly average.

hope that helps

Feb
Total Number of Stores calling ERC13307
Total Number of New Stores Calling (Open < 1 year)617
Total Number of Stores Calling at 40% more (Exception)3404
Total Number of New Stores calling at 40% more than avg.*255
Percent of Exception Stores Calling ERC(out of all stores)25.58%
Ticket Count Monthly Average
4.24
Exception threshold5.93
<colgroup><col width="398" style="width: 299pt; mso-width-source: userset; mso-width-alt: 14555;"> <col width="158" style="width: 119pt; mso-width-source: userset; mso-width-alt: 5778;"> <tbody> </tbody>
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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