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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
TommyHerman
Frequent Visitor

New table with averages per month that filter other table

Hi!

 

I'm trying to create at table based of another table that calculates the average of a column per month that also filters out based on 2 other columns.

My data (this data will be expanded to contain data from way in the past and also new data from months to come)

Data.jpg

 

I would like to create a new table or at least a way to present the average of column [SL 20] by month that is filtered if column [Antal besvarade samtal] or [Tappade samtal] is higher than 0.

My initial tought was to create a calculated table with columns for month and the sum of values in [SL 20] divided by number of rows that are higher than 0 in [Antal besvarade samtal] or [Tappade samtal].

 

To clarify (example data), the resulting table.

Output.jpg

 

Hopefully someone can help me with this. Or maybe have a better way of accomplishing this.

 

Best regards,

Tommy Herman

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@TommyHerman,

 

You may simply try AVERAGEX and FILTER to add a measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@TommyHerman,

 

You may simply try AVERAGEX and FILTER to add a measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you @v-chuncz-msft!

 

With your help I managed to get it working with this folmula, 

= CALCULATE(AVERAGEX(Samtalsstatistik, Samtalsstatistik[SL 20]), FILTER(Samtalsstatistik, OR(Samtalsstatistik[Antal besvarade samtal] > 0, Samtalsstatistik[Tappade samtal] > 0)))
 
Regards,
Tommy Herman

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.