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
njxfoster
Helper I
Helper I

How to get the correct measure total?

Hi Guys!

 

njxfoster_4-1711644122629.png

 

 

I want to make "Forecast to Actual % daily" total show total of 103.69(all combine) instead of 21.11

 

 

 

 

njxfoster_3-1711644091704.png

 

The calculation for "Forecast to Actual % daily" is  Call Received/Forecast

 

I am using measure:  Forecast to Actual % daily = divide(sum('Forecast%'[Call Received]),SUM('Forecast%'[Forecast]))

 

 

What changes I need to make on my measure so I can get the correct total for my data??

 

Thanks in advance!

 

 

 

 

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi @njxfoster ,

I create a table as you mentioned.

vyilongmsft_0-1711680675414.png

Then I use your DAX code to create a Measure named Forecast to Actual % daily.

Forecast to Actual % daily =
DIVIDE ( SUM ( 'Forecast%'[Call Received] ), SUM ( 'Forecast%'[Forecast] ) )

vyilongmsft_1-1711680833585.png

I create a new measure and finally I get what you want.

Measure =
VAR _Div =
    DIVIDE ( SUM ( 'Forecast%'[Call Received] ), SUM ( 'Forecast%'[Forecast] ) )
RETURN
    IF (
        ISINSCOPE ( 'Forecast%'[SERVICE_NAME] ),
        _Div,
        SUMX ( 'Forecast%', [Forecast to Actual % daily] )
    )

vyilongmsft_2-1711680945725.png

 

 

 

Best Regards

Yilong Zhou

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

View solution in original post

1 REPLY 1
v-yilong-msft
Community Support
Community Support

Hi @njxfoster ,

I create a table as you mentioned.

vyilongmsft_0-1711680675414.png

Then I use your DAX code to create a Measure named Forecast to Actual % daily.

Forecast to Actual % daily =
DIVIDE ( SUM ( 'Forecast%'[Call Received] ), SUM ( 'Forecast%'[Forecast] ) )

vyilongmsft_1-1711680833585.png

I create a new measure and finally I get what you want.

Measure =
VAR _Div =
    DIVIDE ( SUM ( 'Forecast%'[Call Received] ), SUM ( 'Forecast%'[Forecast] ) )
RETURN
    IF (
        ISINSCOPE ( 'Forecast%'[SERVICE_NAME] ),
        _Div,
        SUMX ( 'Forecast%', [Forecast to Actual % daily] )
    )

vyilongmsft_2-1711680945725.png

 

 

 

Best Regards

Yilong Zhou

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.