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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have two tables.
The one is user call data (including start time and end time )
The anthoer one is calendar (including working day)
how can i calculate user call's data that how many days in Start time & End time. thank you
Solved! Go to Solution.
Hi,
I am not sure how your expected outcome looks like, but please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
Count working days measure: =
IF (
HASONEVALUE ( Data[ID] ),
COUNTROWS (
FILTER (
'Calendar',
'Calendar'[Working day] = "Working day"
&& 'Calendar'[Date] >= MAX ( Data[Startdate] )
&& 'Calendar'[Date] <= MAX ( Data[Enddate] )
)
)
)
Hi,
I am not sure how your expected outcome looks like, but please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
Count working days measure: =
IF (
HASONEVALUE ( Data[ID] ),
COUNTROWS (
FILTER (
'Calendar',
'Calendar'[Working day] = "Working day"
&& 'Calendar'[Date] >= MAX ( Data[Startdate] )
&& 'Calendar'[Date] <= MAX ( Data[Enddate] )
)
)
)
thank you ! it works 🙂
Hello @BonnieTseng ,
Can you please provide the sample file removing confidential information? It would be easier solving that way.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!