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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ssk_1984
Helper II
Helper II

SUM OF AVERAGE

Hi,

 

Please help to create measure to get the sum of average of LC from individual employee id.

 

 Count of Employee IDSum of LC (Culculated Measure)  
Emp IDCount of DaySum of LC FinalAverage LC per month 
258589210.3954285710.018829932=C3/B3
28094890.4468571430.049650794=C4/B4
  sum of average0.068480726 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ssk_1984 ,

 

I suggest you to try code as below.

Average LC per month =
VAR _VirtualTable =
    ADDCOLUMNS (
        SUMMARIZE (
            'Table',
            'Table'[Emp ID],
            "Count of Day", CALCULATE ( COUNT ( 'Table'[Day] ) ),
            "Sum of Final", CALCULATE ( SUM ( 'Table'[LC Final] ) )
        ),
        "Avg", DIVIDE ( [Sum of Final], [Count of Day] )
    )
RETURN
    SUMX ( _VirtualTable, [Avg] )

Result is as below.

vrzhoumsft_0-1692929287206.png

 

Best Regards,
Rico 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
Anonymous
Not applicable

Hi @ssk_1984 ,

 

I suggest you to try code as below.

Average LC per month =
VAR _VirtualTable =
    ADDCOLUMNS (
        SUMMARIZE (
            'Table',
            'Table'[Emp ID],
            "Count of Day", CALCULATE ( COUNT ( 'Table'[Day] ) ),
            "Sum of Final", CALCULATE ( SUM ( 'Table'[LC Final] ) )
        ),
        "Avg", DIVIDE ( [Sum of Final], [Count of Day] )
    )
RETURN
    SUMX ( _VirtualTable, [Avg] )

Result is as below.

vrzhoumsft_0-1692929287206.png

 

Best Regards,
Rico 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.