The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Everyone, I'd greatly appreciate help with the measure formula as I'm having problems configuring a measure that SUMs the 'People'[Relocation] column between the period of interest. This measure is part of an overall headcount dashboard to track employee numbers and changes.
The measure result for 'HC Change Relocation' is supposed to sum 'People'[Relocation] between the most recent upload date (if no filter selected) OR the date selected to the last day of the fiscal year (3/31).The measure works when I do not filter by my 'Date' dimension table by correctly summing up [Relocation] within the evaluation range using the latest 'People'[date in] dates. (e.g. Today is 1/28/2025. the Max('People'[date in]) value is 12/31/24, the most recent upload date of headcount for 'People'[Worker]. The evaluation period correctly starts from 3/31/2024 (last date of the prior FY) to 12/31/2024). The measure breaks when I do use a slicer for date 'Date'[FY] , 'Date'[FYQ]. Instead, When I select 'FY2024' > nested 'Q3' (the same quarter as the latest 'People'[date in] value of 12/31/24, the measure only evaluates the sum in quarter 3 (10/31/24 to 12/31/24). Not from 3/31/24 to 12/31/24.
Here's some facts about the layout:
I have a matrix with rows 'Company'[Company], values of different headcount measures for the latest headcount for the prior fiscal year, current fiscal year (based on date selected), the HC change b/w the fiscal year, and 'HC Relocation Change', the sub-category of HC Change classified as 'Relocation'. See images below for context.
Slicer not engaged, current numbers look good. Image to bottom right shows correct values from HC Relocation Change measure variables. The values of 1 and -1 took place during Q2 of FY2024.
Measure is incorrect. The 'People'[Relocation] was only summed within the FY quarter dates from 10/31/24 thru 12/31/24, as opposed to 3/31/24 to 12/31/24 as specified in the Test measures (bottom right)
Here's the formula for HC Relocation Change:
Using the slicer for Q3 and Q2 spits out the same 0, showing that it's including the full evaluation range. Row filter context is not respected.
Greatly appreciate someone's help with this. This has had be stumped for a couple days.
Solved! Go to Solution.
Incredible. Sometimes detailing things out suddenly result in one finding out their own solution! In the return portion of the measure, I simply changed it to
Incredible. Sometimes detailing things out suddenly result in one finding out their own solution! In the return portion of the measure, I simply changed it to
Hi @smallpox ,
It's great to hear that your problem has been resolved. Thank you for sharing the solution; it will undoubtedly be helpful to others in the community who may encounter a similar problem. Your contribution is much appreciated.
Best Regards