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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
agd50
Helper V
Helper V

Dynamic Previous Quarter Dax Measure (DistinctCount) Error

This dax formula does not automatically show the previous quarter for me (showing the wrong numbers - showing all numbers not the just the previous quarter). Would anyone know what's going wrong here?

Incidents Previous QTD =
CALCULATE(
    [Count of Incident],
    DATEADD(Dim_Calendar[Date],-1,QUARTER)

(Count of Incident being a simple distinct count formula)
2 REPLIES 2
ProjectKM
Frequent Visitor

If you want to see the previous quarter of [Count of Incident],
it doesn't look like a problem with the way you wrote it.

I think there's a problem somewhere else. Did you set the mark as date table in the Dim_Calendar table?

It appears to be already marked as a date table - they are in different tables if that makes a difference.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors