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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

YTD calculation for Roleplaying Dimensions

The data is about failures in equipment. I have two dates failuredate and firststartdate and column installType to identify it is new or replacement.

I have created active relationship as failuredate and inactive relationship as firststartdate.

I want to calculate
YTD of new and replacement equipment.

CountNR = calculate( countA(ID), InstallType="new" || InstallType="replace", userelationship)

CountNR_FIrstStart= calculate(CountNR, userelationship (Firststartdate,Dimdate[date]))


YTDNR= TotalYTD(CountNR_FirstStart, Firststartdate,"3/31")

This works fine without filter Fiscalyear from dimdate.
When we filter previous fiscal year YTDNR returns incorrect results.
I hope when we filter the fiscal year records are filter based on failuredate since it is active relationship.

So, how to calculate YTD for inactive date dimension.
0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.