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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I am trying to calculate a count for previous month taking into account data that spans across multple years.
I have a calendar table connected to my fact table, here are my two measures:
So I need to account for the year as well, it has to be previous calendar month for 2023.
Here is a small sample of my data:
Sample Data.pbix
what's the expected output for the sample data you provided?
Proud to be a Super User!
In the sample PowerBI dataset, I have a card showing the # I need.
I just want the # of Closed HR compaints for previous month - Septermber 2023
The complication is comes in with multiple years in the dataset, also, when it's January 2024, the calculation has to account for previous month and year = December 2023
have you tried to use USERELATIONSHIP to activate the inactive relationship?
USERELATIONSHIP function (DAX) - DAX | Microsoft Learn
Proud to be a Super User!
I have a direct connection between tables, issue is not with that....
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.