Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Need help: average

Hi, 

 

I calculated the amount of items rejected with the following dax: 

Afgekeurde flowpacks = 
COUNTX(Espera; Espera[Index])

This value is filtered with a date filter on the page.

 

I would like to DAX a running average over the last 2 months,

 

Could someone help me out on this?

3 REPLIES 3
gipiluso
Resolver II
Resolver II

It should help somethink like:


Measure:=
CALCULATE(Afgekeurde flowpacks,FILTER(Date,Date[Calendar Date]>=DATEADD ( 'Date'[Calendar Date], -2, MONTH )))

Anonymous
Not applicable

Hi @gipiluso,

 

I used your formula and it gave me the following result.

 

 

 

tempsnip.png

 

I believe we must modify it in a way that it calculates the average 'afgekeurde flowpacks' per line over a period of 2 months.

 

Any clue how? 

 

I think that the current measure perform the calculation on the 2 month before, in the report you should se the average of the 2 month collapsed in each point.

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.