The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have data like above for report creation.
Alraedy am calculating sum for tria and average for commission using some measures...like below
Solved! Go to Solution.
Hi @Anonymous,
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!
Hi @Anonymous,
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!