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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Total value in table report not showing correct value

Hi guru,

I have question and hope you can provide a clue.

I have a table report consists of three column fields (type: whole number). One of the column(i.e. Maint. Plans Targeted) is not providing the total value. 

F1.JPG

For example, the total value for "Maint. Plans Targeted" column sould be 467, however because of my DAX formula of using the Average, the total value become 8.
Maint. Plans Target1 = Calculate(AVERAGE('Class 9 Maintenance Data_New'[Current Plan Target.1]),

filter('Class 9 Maintenance Data_new', [FLOCDATASET]<>"1"),
filter('Class 9 Maintenance Data_New', [Reporting Month]=[This_Month]))
 
BUT, I have a dilemma because I HAVE TO USE AVERAGE for individual line calculation for the "Maint. Plans Targeted". The following is the table view.
As I only want to show one line value of 16 (i.e. Current Plant Target.1 column), I am using the Average in the DAX not the SUM to derive the correct "Maint. Plans Targeted" column in the report (refer above figure). But this led to wrong total value for the "Maint. Plans Targeted" column in the report.
F2.JPG

 

HOW to solve this?

 

Thanks

Tuff

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous  - Sorry, that was a copy/paste mistake...Here is the corrected measure:

Maint. Plans Target1 = 
var _avg = SUMMARIZE(
    FILTER(
        'Class 9 Maintenance Data_New',
        'Class 9 Maintenance Data_New'[FLOCDATASET]<>"1" && 'Class 9 Maintenance Data_New'[Reporting Month]=[This_Month]
    ),
    'Class 9 Maintenance Data_New'[Country], 
    "Average",AVERAGE( 'Class 9 Maintenance Data_New'[Current Plan Target.1])
)
return sumx(_avg,[Average])

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Anonymous  - 

Try something like this:

Maint. Plans Target1 = 
var _avg = SUMMARIZE(
    FILTER(
        'Class 9 Maintenance Data_New',
        'Class 9 Maintenance Data_New'[FLOCDATASET]<>"1" && 'Class 9 Maintenance Data_New'[Reporting Month]=[This_Month]
    ),
    'Class 9 Maintenance Data_New'[Country], 
    "Average", 'Class 9 Maintenance Data_New'(Sales[Current Plan Target.1])
)
return sumx(_avg,[Average])
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson
Anonymous
Not applicable

Hi Peter,

I hits error on the following line of the Dax...

 

'Class 9 Maintenance Data_New'(Sales[Current Plan Target.1])

May I know if Sales is a function? what did i miss out here? thanks

 

F3.JPG

 

Anonymous
Not applicable

@Anonymous  - Sorry, that was a copy/paste mistake...Here is the corrected measure:

Maint. Plans Target1 = 
var _avg = SUMMARIZE(
    FILTER(
        'Class 9 Maintenance Data_New',
        'Class 9 Maintenance Data_New'[FLOCDATASET]<>"1" && 'Class 9 Maintenance Data_New'[Reporting Month]=[This_Month]
    ),
    'Class 9 Maintenance Data_New'[Country], 
    "Average",AVERAGE( 'Class 9 Maintenance Data_New'[Current Plan Target.1])
)
return sumx(_avg,[Average])

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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