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! Request now
Hi,
I need to create a column that will return 'HPP_PlanYears_Crosswalk'[PlanYear] when 'ClaimData'[IncurredFrom] is between 'HPP_PlanYears_Crosswalk'[PlanYearStart] and 'HPP_PlanYears_Crosswalk'[PlanYearEnd] AND where 'HPP_PlanYears_Crosswalk'[GroupID] = 'ClaimData'[GroupID]
'ClaimData'[IncurredFrom], 'HPP_PlanYears_Crosswalk'[PlanYearStart], 'HPP_PlanYears_Crosswalk'[PlanYearEnd] are already formatted as dates.
Can you please assist me? I found a few example threads posted but none were exactly what I needed.
Thank you,
Andrew
Solved! Go to Solution.
if you changed the plan year to max it probably would have worked, i see you changed it, but you have an iterator ie Maxx, do you specifically need an iterator as they are more performance hungry.
Proud to be a Super User!
try this?
Plan Year =
VAR groupid =
SELECTEDVALUE ( 'ClaimData'[GroupID] )
VAR result =
CALCULATE (
'HPP_PlanYears_Crosswalk'[PlanYear],
'ClaimData'[IncurredFrom] >= 'HPP_PlanYears_Crosswalk'[PlanYearStart]
&& 'ClaimData'[IncurredFrom] <= 'HPP_PlanYears_Crosswalk'[PlanYearEnd]
&& 'HPP_PlanYears_Crosswalk'[GroupID] = groupid
)
RETURN
result
Proud to be a Super User!
This is close to what I need but I am getting an error with your DAX. I tried to resolve it but couldn't get your solutuon to work.
The error reads: The expression contains columns from multiple tables, but only columns from a single table can be used in a True/False expression that is used as a table filter expression.
if you changed the plan year to max it probably would have worked, i see you changed it, but you have an iterator ie Maxx, do you specifically need an iterator as they are more performance hungry.
Proud to be a Super User!
This is what I needed:
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.