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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.