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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ykannan
Helper I
Helper I

How to show Average values in Total section

I am trying to create PowerBI report with same data as in other BI tool,

In PowerBI,I have created measures like,

DO_Count = count(creo_sales[DO_ID])
 
EGPS DO Count = COUNTROWS (
    FILTER (
        creo_sales,
         CONTAINSSTRING(creo_sales[OP_GROUP_NAME], "GPS")))
 
Percent EGPS DO's = [EGPS DO Count]/[DO_Count]
 
In the percentage EGPS DO's columns, total section, I want to have Average value instaed of Total. In those above measures, I could not see Average aggregation.

 

ykannan_1-1681795028128.png

 

Other BI tool,

DO Count= =Count([Delivered Order ID])

 

EGPS DO Count=Count([Delivered Order ID];Distinct) Where(Match([Order Planning Group];"*Excelsius GPS*")) ForEach([Delivered Order ID]) In([YEAR])

 

Percent EGPS DO's = =[EGPS DO Count]/[DO Count]

 

I can do the Average in other BI tool. How can I do the same in Power BI?

 

ykannan_3-1681795414603.png

 

As per below article, Measures do not have the aggregate values below shown options,

Work with aggregates (sum, average, and so on) in Power BI - Power BI | Microsoft Learn

ykannan_5-1681795603738.png

Thanks,

Yoga

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @ykannan ,

 

I suggest you to use Averagex() function to create a new measure based on [Percent EGPS DO's] measure.

New Percent EGPS DO's =
AVERAGEX ( VALUES ( 'TableName'[Year] ), [Percent EGPS DO's] )

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @ykannan ,

 

I suggest you to use Averagex() function to create a new measure based on [Percent EGPS DO's] measure.

New Percent EGPS DO's =
AVERAGEX ( VALUES ( 'TableName'[Year] ), [Percent EGPS DO's] )

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors