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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Bderi
Frequent Visitor

End of period balance (year, quarter, month)

Hello,

 

Let us please assume I have a simple table containing the name of the employee, the month, the salary and the headcount. Headcount can be between 0 and 1 (if an emplyoee is fully employed, it is a 0, if part-time, it is 0.5, if no longer employed, it is 0).

 

In the pivot, I do see the sum for the salary (no brainer)  - however, for the headcount, I'd like to see two things:

 

1) the average for the selected period

2) the closing balance of the selected period

 

The selected period can either be a year, half-year, quarter or the month. I have seen the functions CLOSINGBALANCEMONTH, but is there a way to make a CLOSINGBALANCE*ANYTHING*? Same question for averages.

 

 Closing.JPG 

 

dd.JPG

 

Thanks for any pointers!

Balazs

1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

Hi @Bderi

 

you can do something like this: https://1drv.ms/u/s!AiiWkkwHZChHjxLqqZGKqGW-VS1o

 

 

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

2 REPLIES 2
LivioLanzo
Solution Sage
Solution Sage

Hi @Bderi

 

you can do something like this: https://1drv.ms/u/s!AiiWkkwHZChHjxLqqZGKqGW-VS1o

 

 

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

 

Thanks a lot for the help, LivioLanzo!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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