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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

% Based on Grand Total of the category

Hello,

 

I am hoping to get some directions as to how to calculate % planned and actual based on certain point of time.

 

For example:

I want the slicer to show the calculation in % based on the specified time. So, for example based on the sample data (attached) if the Slicer is set for July. I want planned to show 33% for Emp 1 and actual to show 67% for Emp 1.

I was able to get that for planned using the RELATED function. But, I am unable to replicate that for the actuals as it's keep giving me circular reference error.

 

Is there a way to fix it or is there a better way to do it?

I have attached my sample .pbix file too.

 

Thank you in advance for the help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The way I got around to fixing this is by 

1) Creating a column in the relevant table to get the total count using Earlier function based on the category you want. In my case it was the total count by employee

Total Count = Calculate(Count)('Your table name'[Column name]), Filter(Your table name'[Column name]=Earlier(Your table name'[Column name])))

2) Use the Max function to find the max count by employee

3) Use Divide function to get the % at the point in time with the denominator being the Grand Total

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

The way I got around to fixing this is by 

1) Creating a column in the relevant table to get the total count using Earlier function based on the category you want. In my case it was the total count by employee

Total Count = Calculate(Count)('Your table name'[Column name]), Filter(Your table name'[Column name]=Earlier(Your table name'[Column name])))

2) Use the Max function to find the max count by employee

3) Use Divide function to get the % at the point in time with the denominator being the Grand Total

amitchandak
Super User
Super User

@Anonymous , Try a measure like

Planned % Measure = DIVIDE([CompletedCount],[PlannedCount])

 

Please find the file attached after signature

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak , thank you for your response. Unfortunately it didn't help me fix the issue as at times when the completion was higher than the planned for the particular month it was showing a % higher than 100 where as what I was looking for is a % based on YTD planned. But, I was able to find a way to find the solution using a different method listed below

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.