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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
manoplaeli
Helper II
Helper II

Quick calc percentage monthly

Capture1.PNGCapture2.PNGCapture3.PNG

 

I am working on employee time and I use quick Calc to show percentage but it show as total as in in the picture. I want to show the percentage of Direct vs Share by monthly. As you can see here if I show this in the graph it doesn't not add up to 100% monthly. 

 

http://community.powerbi.com/t5/Desktop/How-to-display-the-graph-in-percentage-for-daily-monthly/m-p...

I follow this post but it is doen't works.

1 ACCEPTED SOLUTION

Hi @manoplaeli

 

I think I misunderstood your problem initially.

 

I have partially used Query Editor to get the correct results.

 

I have pivoted the hours column to get the correct data structure in order to solve this problem. There are other solutions as well but I find this convenient.

PivotPivot

Then I have created 3 calculated columns to get the Share and Direct % as shown below.

Results of the pivot columnResults of the pivot columnpro3.PNGSHARE%SHARE%

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

View solution in original post

6 REPLIES 6
BhaveshPatel
Community Champion
Community Champion

Hi @manoplaeli

 

Write three measures to visulize this.

 

DirectHours:=CALCULATE(SUM(Table1[Hours]), FILTER(Table1, Table1[Cost]="Direct"))

ShareHours:=CALCULATE(SUM(Table1[Hours]), FILTER(Table1, Table1[Cost]="Share"))

 

Percentages:=DIVIDE([DirectHours],[ShareHours],2)

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Thanks, @BhaveshPatel

 

Below is the fomular in my table. It only show me Direct Cost.

 

Capture4.PNG

 

DirectHours = CALCULATE(SUM('Timesheet Details TSR01'[Hours]),FILTER('Timesheet Details TSR01','Timesheet Details TSR01'[Cost]="Direct Cost"))

ShareHours = CALCULATE(SUM('Timesheet Details TSR01'[Hours]),FILTER('Timesheet Details TSR01','Timesheet Details TSR01'[Cost]="Share Cost"))

 

Percentage = DIVIDE([DirectHours],[ShareHours],2)

Are you writing measures??

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Yes I wrote in meansure

Capture6.PNG

Hi @manoplaeli

 

I think I misunderstood your problem initially.

 

I have partially used Query Editor to get the correct results.

 

I have pivoted the hours column to get the correct data structure in order to solve this problem. There are other solutions as well but I find this convenient.

PivotPivot

Then I have created 3 calculated columns to get the Share and Direct % as shown below.

Results of the pivot columnResults of the pivot columnpro3.PNGSHARE%SHARE%

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

 

Hi @BhaveshPatel

 

Thank you very much I got it works now,

 

Best,

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors