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
Anonymous
Not applicable

Calculation of monthly progress percentage

My data looks something like this, Planned is coming from one table and Actual from other which i have connected over date table.

 

Actual & (1).jpg

 

I'm trying to ploting % values using dates as axis Or by months Bins as axis on Clustered column chart, 

 

Like here for example , In Sept Total Planned = 57 , Total Actual till date in Sept = 59  .

I am having difficulty preparing measure for Below

 

So Total effort in Sept = (59/57)*100 = 103%

For the month of Sept actual % = 47% & Sept Plan % =57/124 = 46%.

 

Total Effort in Oct = (0/67)*100 = 0%

 

 


Similarly, I'll be doing for many months and acutals will keep coming every month on clustered chart

Also for Running total, I just used the running total Quick measure for Planned , But for Actual, since it is dividing by itself by End of Sept running total is showing 100% where as it should be 47.58%

5 REPLIES 5
danextian
Super User
Super User

If you don't have Dates table yet, create one. You may use the formula below to create a calculated calendar table:

 

Calendar =
ADDCOLUMNS (
    CALENDAR (
        MIN ( MIN ( PlanTable[Plan Dates] ), MIN ( ActualTable[Actual Dates] ) ),
        MAX ( MAX ( PlanTable[Plan Dates] ), MAX ( ActualTable[Actual Dates] ) )
    ),
    "Month Name", FORMAT ( [Date], "mmm" )
)

 

 

Create a single direction relationship between the Date column in Calendar table & PlanTable[Plan Dates] and Date column in Calendar table & ActualTable[Actual Dates].  Create this measure:

 

Percentage =
DIVIDE ( SUM ( ActualTable[Actual Work] ), SUM ( PlanTable[Planned Work] ) )

 

 

Add the MonthName column from Calendar to a visual and then the Percentage measure.










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

Hey @danextian  this Really helped me calculate Effort % work done per month. But I'm also trying to Plot this type of graph.

 

Here all are in numbers, I'm Trying to get this chart in Percentage. Orange is planned and Blue is actual.

Can you help me please? 

chart-compare-to-last-year-by-month-overlapped.jpg

 

 

dax
Community Support
Community Support

Hi Zahid_shaikh22,

It seems that you want to show precentage and acutal value in the same chart, right? If I have something misunderstood, please correct me. If so , you could try to use Line and Clustered column chart and use secondary axis for chart like below

524.PNG

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

@dax  No, The graph photo that I shared, they are in numbers. I want to show them in form of percentage. Planned % and Actual %

dax
Community Support
Community Support

Hi Zahid_shaikh22,

If you want to show value as percentage, you could choose corresponding field, then click modeling->% to change format. If you want to show % based on each month, I think you need to create measure to achieve this goal( you might need to filter in measure, filter (table, month=min(calendar[month])). Or you could upload your report file on forum, please do mask sensitive data before uploading.

 

Best Regards,
Zoe Zhi

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

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.