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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Average

I'm looking for a way to calculate the average over time for below highlighted column:

1.PNG 

The [Positive %] measure is simply Positive Count/Total Count for each month surveys were taken. Everything I've tried so far only returns 100% and I'm not sure why. Any ways of how I can get the average? I do have a separate date table as well but was unsure of how to incorporate it with this data. Thanks!

4 REPLIES 4
BKirsch12
Resolver II
Resolver II

The easiest way to do this would be to add a card and slicer to do this. Are you looking for the table to stay static? If that is true, then you'll need to create time intelligent measures for each period you want to show. Attached an example file of the easy slicer and card way.

 

https://drive.google.com/open?id=1QNASArWgRyKaF7DBl7IzGfAEt9Z37bxU

 

Anonymous
Not applicable

@BKirsch12 I was hoping to do it through DAX. The table was just meant to show the setup. Using the same dataset, I've accomplished this with another measure that was tracking something different:


1.PNG 

So here the Month End column actually comes from my Date table. This works, so I attempted to do the same thing with the Positive % measure, but when I do every line comes back as 1.0 or 100%.

I think I understand, without seeing your date table, it's tough to say exactly how to implement it. This article shows a good example of computing average over certain time frames.

 

https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/

Anonymous
Not applicable

@BKirsch12 Thanks! I'll be sure to check it out and give it a try.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.