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
Anonymous
Not applicable

Average headcount basis Month, Location, Entity, Status & Type

Dear Guru/s,

 

I am a novice in Power Bi desktop - learning the ways. 

Have been trying to build a report based on slicer selection of Month / Location/ Status/ & Type.

Able to create MTD avg and %ages with measures, 

but slicers do not work in accordance to moving avg YTD or Total YTD exits - PBIX link attached for ref. 

Sample file 

Please suggest how to go about it  - single table mentioned below  :

DateZoneEntity_DescIdsTypeStatusUnitStatusExitsDateKeyYearNumberYearMonthNumberMonth
Apr-19NCR-1Discovery NetworkXX01EmployeeFull TimeLOSOpening 201904012020FY 20201April
Apr-19NCR-1WalmartXX02TemporaryPart TimeHOUOpening 201904012020FY 20201April
Apr-19NCR-1Holiday InnXX03ContractualFull TimeHOUOpeningInactive201904012020FY 20201April
May-19NCR-1Discovery NetworkXX01EmployeeFull TimeLOSOpening 201905012020FY 20202May
May-19NCR-1WalmartXX02TemporaryPart TimeHOUOpeningInactive201905012020FY 20202May
May-19NCR-1Holiday InnXX04EmployeeNursingTEXNew joiner 201905012020FY 20202May
Jun-19NCR-1Discovery NetworkXX01EmployeeFull TimeLOSOpening 201906012020FY 20203June
Jun-19NCR-1WalmartXX04TemporaryPart TimeTEXOpeningInactive201906012020FY 20203June
Jun-19NCR-1Holiday InnXX05ContractualFull TimeHOUNew joinerInactive201906012020FY 20203June
Jul-19NCR-1Discovery NetworkXX01EmployeeNursingLOSOpening 201907012020FY 20204July
Jul-19NCR-1WalmartXX06ContractualFull TimeTEXNew joiner 201907012020FY 20204July
2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try using the below pattern to calculate YTD

YTD Exits = 
CALCULATE(
    [Exits],
    DATESYTD( Sheet1[Date].[Date] )
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Hi Mariusz,

 

Thanks for the code.

The output received basis the code is of Month on months Exits ( e.g. April -10, May-15 ...)and not rolling YTD exits (e.g. April - 10, May - (10+15 = 25), as required here.

 

Please advise.

Regards,

Pratz

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.