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
NISHA_S
Resolver I
Resolver I

percentage for sum and average

Capture4.PNG

I have data like above for report creation.

Alraedy am calculating sum for tria and average for commission using some measures...like below

TRIA sum = CALCULATE(SUM('Sheet1'[TRIA]),'Sheet1'[ENDORSEMENT]=0 )
AVg Commission = CALCULATE (AVERAGE('Sheet1'[Commission]),FILTER('Sheet1',  'Sheet1'[ENDORSEMENT]= 0))
 
I want (%) percentage value for category type Percenatge of Total based on TRIA sum and AVg Commission
 
plse help...

 

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

Hi @NISHA_S,

 

Modify your measure as below:

TRIA sum = CALCULATE(SUM('Sheet1'[TRIA]),FILTER(ALL('Sheet1'),'Sheet1'[ENDORSEMENT]=0 &&'Sheet1'[Category]=MAX('Sheet1'[Category])&&'Sheet1'[Type]=MAX('Sheet1'[Type])))
AVg Commission = CALCULATE (AVERAGE('Sheet1'[Commission]),FILTER(ALL('Sheet1'),  'Sheet1'[ENDORSEMENT]=0&&'Sheet1'[Category]=MAX('Sheet1'[Category])&&'Sheet1'[Type]=MAX('Sheet1'[Type])))

Then create a new measure as below:

Percentage of Total=DIVIDE('Sheet1'[TRIA sum],'Sheet1'[AVg Commission])

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi @NISHA_S,

 

Modify your measure as below:

TRIA sum = CALCULATE(SUM('Sheet1'[TRIA]),FILTER(ALL('Sheet1'),'Sheet1'[ENDORSEMENT]=0 &&'Sheet1'[Category]=MAX('Sheet1'[Category])&&'Sheet1'[Type]=MAX('Sheet1'[Type])))
AVg Commission = CALCULATE (AVERAGE('Sheet1'[Commission]),FILTER(ALL('Sheet1'),  'Sheet1'[ENDORSEMENT]=0&&'Sheet1'[Category]=MAX('Sheet1'[Category])&&'Sheet1'[Type]=MAX('Sheet1'[Type])))

Then create a new measure as below:

Percentage of Total=DIVIDE('Sheet1'[TRIA sum],'Sheet1'[AVg Commission])

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

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.