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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors