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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
Please check the below picture and the attached pbix file.
ClientNr Count: =
VAR _clienttable =
CALCULATETABLE (
SUMMARIZE ( Data , Data[ClientNr], Data[Startdate], Data[Enddate] ),
REMOVEFILTERS ( 'Calendar' )
)
VAR _quarterstart =
MIN ( 'Calendar'[Date] )
VAR _quarterend =
MAX ( 'Calendar'[Date] )
RETURN
COUNTROWS (
SUMMARIZE (
FILTER (
_clienttable,
Data[Enddate] >= _quarterstart
&& Data[Startdate] <= _quarterend
),
Data[ClientNr]
)
)
SubNr Count: =
VAR _SubNrtable =
CALCULATETABLE (
SUMMARIZE ( Data, Data[SubNr], Data[Startdate], Data[Enddate] ),
REMOVEFILTERS ( 'Calendar' )
)
VAR _quarterstart =
MIN ( 'Calendar'[Date] )
VAR _quarterend =
MAX ( 'Calendar'[Date] )
RETURN
COUNTROWS (
SUMMARIZE (
FILTER (
_SubNrtable,
Data[Enddate] >= _quarterstart
&& Data[Startdate] <= _quarterend
),
Data[SubNr]
)
)
Super thanks!! Very helpfull this. GreatingsMargreet
Hi,
Please check the below picture and the attached pbix file.
ClientNr Count: =
VAR _clienttable =
CALCULATETABLE (
SUMMARIZE ( Data , Data[ClientNr], Data[Startdate], Data[Enddate] ),
REMOVEFILTERS ( 'Calendar' )
)
VAR _quarterstart =
MIN ( 'Calendar'[Date] )
VAR _quarterend =
MAX ( 'Calendar'[Date] )
RETURN
COUNTROWS (
SUMMARIZE (
FILTER (
_clienttable,
Data[Enddate] >= _quarterstart
&& Data[Startdate] <= _quarterend
),
Data[ClientNr]
)
)
SubNr Count: =
VAR _SubNrtable =
CALCULATETABLE (
SUMMARIZE ( Data, Data[SubNr], Data[Startdate], Data[Enddate] ),
REMOVEFILTERS ( 'Calendar' )
)
VAR _quarterstart =
MIN ( 'Calendar'[Date] )
VAR _quarterend =
MAX ( 'Calendar'[Date] )
RETURN
COUNTROWS (
SUMMARIZE (
FILTER (
_SubNrtable,
Data[Enddate] >= _quarterstart
&& Data[Startdate] <= _quarterend
),
Data[SubNr]
)
)
Super thanks!! Very helpfull this. GreatingsMargreet