The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
8 |