Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi, I'm trying to get a column with a running total each month using this DAX in the column:
MTD Risks =
CALCULATE(
SUM(q_Compliance[Some Current Risk]),
DATESMTD('Calendar'[Date]),
USERELATIONSHIP(q_Compliance[Risk Assessment Date],'Calendar'[Date])
)...but I just get blanks in the colum:
What am I doing wrong?
Solved! Go to Solution.
hi, @k1s2
i think below code is useful for your requirnment
MTD Risks =
CALCULATE(
SUM(q_Compliance[Some Current Risk]),
DATESMTD(q_Compliance[Risk Assessment Date]),
ALLEXCEPT('q_Compliance',q_Compliance[Risk Assessment Date])
)
hi, @k1s2
i think below code is useful for your requirnment
MTD Risks =
CALCULATE(
SUM(q_Compliance[Some Current Risk]),
DATESMTD(q_Compliance[Risk Assessment Date]),
ALLEXCEPT('q_Compliance',q_Compliance[Risk Assessment Date])
)
Thank you. DO you have time to explain why it needs the ALLEXCEPT part?
It seems counterintiutive. Surely I want it to include those dates?
Power BI file is here:
https://drive.google.com/file/d/1r6eNKsoxmrnzqjjIUiQG-XLHAcRO0IBk/view?usp=drive_link
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.