Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have been using the below formula to calculate my fired employees but it is offsetting it by a month. Can anyone help me shift it properly so that it display on the month they were fired rather than the month after?
(August should show 8 and September should show 3)
Fired =
VAR currDate =
MAX ( Sheet1[Date] )
VAR currList =
CALCULATETABLE (
VALUES ( Sheet1[EmployeeID] ),
FILTER (
ALLSELECTED ( Sheet1 ),
[Date] >= DATE ( YEAR ( currDate ), MONTH ( currDate ), 1 )
&& [Date]
<= DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 )
- 1
)
)
VAR prevList =
CALCULATETABLE (
VALUES ( Sheet1[EmployeeID] ),
FILTER (
ALLSELECTED ( Sheet1 ),
[Date]
>= DATE ( YEAR ( currDate ), MONTH ( currDate ) - 1, 1 )
&& [Date]
<= DATE ( YEAR ( currDate ), MONTH ( currDate ), 1 ) - 1
)
)
RETURN
COUNTROWS ( EXCEPT ( prevList, currList ) )
+ IF ( DISTINCTCOUNT ( Sheet1[EmployeeID] ) <> 0, 0, BLANK () )
Hi @Anonymous ,
Could you please share your sample data and excepted result to me if you don't have any confidential Information. Please upload your files to One Drive and share the link here.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |