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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AlbertoChirinos
Regular Visitor

Average just one item in a column table

Hi everyone,

 

I am relatively new working on Power Bi and I am struggling with a measure I want to create. I have below table with different measures created for monthly, year to date, full year, past year and so on. But the issue is that I have one item in the column Unit of Measure called M2 which is summing just as the others, but in fact this item should not be summing it should be an average and I don't know how to create a measure that sum for the rest of items but average just for this one.

 

AlbertoChirinos_0-1660075335940.png

 

Hope you can help me on this one.

 

Thanks.

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

@AlbertoChirinos 

 

In your measure just use SWITCH on the unit of measure field. Your measure must sense if the relevant unit of measure is in scope and then apply the different logic. To check if it's in scope you can either use the ISINSCOPE function or HASONEFILTER (perhaps with some additional conditions).

View solution in original post

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

@AlbertoChirinos 

 

In your measure just use SWITCH on the unit of measure field. Your measure must sense if the relevant unit of measure is in scope and then apply the different logic. To check if it's in scope you can either use the ISINSCOPE function or HASONEFILTER (perhaps with some additional conditions).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.