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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Fordyce11
Regular Visitor

Combined Actual & Forecast Percentage- Getting Wrong Total

Hello,

I’m looking for some help with a problem I’m stuck on, if anyone can help.  

I need to create a table with efficiency percentages for ‘Actual’, ‘Forecast’, and a combined ‘Actual & Forecast’. So far, I’ve created the below.

table.PNG

This works ok, except for ‘Actuals & Forecast’ Total, which is giving the same as ‘Forecast’ but should be higher. 

 

Measures used are shown below:

Actual = DIVIDE([Sum Actual],[Sum of Target],0)

 

Forecast = DIVIDE([Sum of Short Term Forecast],[Sum of Max Potential],0)

 

Actual & Forecast =

IF (

    MAX ('dim_DATE'[Full Date]) < TODAY(),

    [PE Actual],

    [PE Forecast]

)

 

Actuals and Forecast values both come from the same table. Unfortunately, I cannot share the data but it looks something like below.

 

DateActual TargetMax PotentialShort Term Forecast
13/04/2024900120016501050
14/04/20241000130017001100
15/04/2024 130017001100

 

I’ve been trying to find a solution to this, but have so far not found anything describing a problem quite like this.

If anyone can offer any advice or help with this it would be greatly appreciated. 

 

 

3 REPLIES 3
Fordyce11
Regular Visitor

Hi @v-tianyich-msft,

 

Thank you for the quick response, I've tried the calculated column as you suggest, but I'm afraid I still can't get it to work as hoped. Results are shown in the table below.

table.PNG

I should have added that the data is for several locations each day, so more like below. Might this change how this should be done?

 

Date Actual Target Max Potential Short Term Forecast Location
13/04/2024 900 1200 1650 1050 A
13/04/2024 1100 1100 1500 1100 B
13/04/2024 800 900 1050 800 C
14/04/2024 1000 1300 1700 1100 A
14/04/2024 1200 1100 1500 1100 B
14/04/2024 750 900 1050 800 C
15/04/2024 1300 1700 1100 A
15/04/2024 1100 1500 1100 B
15/04/2024 900 1050 800 C

Hi @Fordyce11 ,

 

It is difficult to assert this, as it can be noticed from the graph that none of the values in the calculated columns are equal to the actual or expected values. Please change your original measure to a calculated column.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

v-tianyich-msft
Community Support
Community Support

Hi @Fordyce11 ,

 

The problem is with the date selection, which can be solved by using a calculated column:

vtianyichmsft_0-1713236392179.png

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.