The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello all,
My query is related to this previous post:
Solved: Calculated column that tells me whether someone ha... - Microsoft Fabric Community
My organisation also looks at 'Returning clients', which are existing clients that have re-engaged with us after 6 months or more of no contact.
How could I modify the DAX formula provided in the solution in the above post to return True for anyone who is a 'Returning Client'?
Many thanks in advance!
Solved! Go to Solution.
@MadalenaBicho you can try the below.
ReturningClient =
IF(
CALCULATE(
COUNTROWS('YourTableName'),
FILTER(
'YourTableName',
'YourTableName'[ClientID] = EARLIER('YourTableName'[ClientID])
)
) > 0,
"True",
"False"
)
@MadalenaBicho you can try the below.
ReturningClient =
IF(
CALCULATE(
COUNTROWS('YourTableName'),
FILTER(
'YourTableName',
'YourTableName'[ClientID] = EARLIER('YourTableName'[ClientID])
)
) > 0,
"True",
"False"
)
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
13 | |
13 | |
8 | |
8 |