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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.