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.
Hello Team,
I have a situation where i am trying to calcualte the running total between Date_master table to Eligmember table. but there is no any relaitonship created as this eligmember table is a scd type 2 table and having inactive relaitonship.
Here is a sample model with a few tables:
Here is the DAX formula for one measure: based on the toggle selection
Here [MaxDate] and [MinDate] are come from the Master calendar table. And the Master calendar table has no direct relationship with Eligimember table.
See the final output of the measure
Please provide suggestions for any dax queries.
Thanks
Mohan V.
Solved! Go to Solution.
Hi @Anonymous ,
To modify your DAX expression to use the GUID column (string data type) instead of the amount column, you can use the COUNTROWS function to count the number of rows that match the condition. Such like below formula:
RunningTotal_ =
VAR _MinDate = MIN(PBI_MASTER_CALENDAR[DATE_VALUE])
VAR _MaxDate = MAX(PBI_MASTER_CALENDAR[DATE_VALUE])
RETURN
COUNTROWS(
FILTER(
PBI_ELIGMEMBER,
PBI_ELIGMEMBER[REGISTRATION_DATE] >= _MinDate &&
PBI_ELIGMEMBER[REGISTRATION_DATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIEFFECTIVEDATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIENDDATE] >= _MinDate
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thanks for the reply.
I have to use the GUID column here and i do not have any amount column in my table.
And FYI, guid is STRING data type column.
Please guide me on how i can have this expression work with STRING datatype column.
Apreciate your time and efforts on it.
Thanks,
Mohan V.
Hi @Anonymous ,
To modify your DAX expression to use the GUID column (string data type) instead of the amount column, you can use the COUNTROWS function to count the number of rows that match the condition. Such like below formula:
RunningTotal_ =
VAR _MinDate = MIN(PBI_MASTER_CALENDAR[DATE_VALUE])
VAR _MaxDate = MAX(PBI_MASTER_CALENDAR[DATE_VALUE])
RETURN
COUNTROWS(
FILTER(
PBI_ELIGMEMBER,
PBI_ELIGMEMBER[REGISTRATION_DATE] >= _MinDate &&
PBI_ELIGMEMBER[REGISTRATION_DATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIEFFECTIVEDATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIENDDATE] >= _MinDate
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Maybe you can modify your formula like below:
RunningTotal =
VAR _MinDate = MIN(PBI_MASTER_CALENDAR[DATE_VALUE])
VAR _MaxDate = MAX(PBI_MASTER_CALENDAR[DATE_VALUE])
RETURN
SUMX(
FILTER(
PBI_ELIGMEMBER,
PBI_ELIGMEMBER[REGISTRATION_DATE] >= _MinDate &&
PBI_ELIGMEMBER[REGISTRATION_DATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIEFFECTIVEDATE] <= _MaxDate &&
PBI_ELIGMEMBER[BIENDDATE] >= _MinDate
),
PBI_ELIGMEMBER[AmountColumn]
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.