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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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