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
Pbiuserr
Post Prodigy
Post Prodigy

Average score of active items

Hello,

I have a report where business choose period, lets say they choose 08.2022
For this period, I've got lets say 1000 items active and all of them got some score (1-10). What I would like to do, is to get average score of active items per period

1 ACCEPTED SOLUTION

@Pbiuserr yep just with proper column names: 'Table'[column] = value

You could also just put these filters in the visual level filters, but I like better the approach of creating a dedicated measure like our 1st option.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@Pbiuserr if you just write a simple AVERAGE('Table'[score]) you will get the right result when putting it on a chart / matrix breaking down by months and having a filter for true on the active index column.

You can also write somehing like:
CALCULATE(AVERAGE('Table'[score], 'Table'[status] = 'Active') 
and then you don't need to use a visual filter context for this measure.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Hi,

For the chart I am aware of. Its for the card. My initial thinking was just to do AVERAGE (column), but I guess its more save if it meets criteria thats its active. To indicate active (CountOfActive, its not unfrotunately the status, but the flag must be 1 and item_prd = 0, so the measure would be :

CALCULATE (AVERAGE (Table[Score], ITEM_PRD = 0, ITEM_FLG = 1) ?

 

@Pbiuserr yep just with proper column names: 'Table'[column] = value

You could also just put these filters in the visual level filters, but I like better the approach of creating a dedicated measure like our 1st option.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

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.