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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.