Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mihaita_baro
Helper II
Helper II

Clients change in status

Hi guys,

 

I have the below table and each Client have multiple review sessions and all i am looking for is to calculate how many clients change from Low Intensity to High Intensity and i am struggle to find it how. Any hint or tips is good.

 

 

ClientIdrevreviewIDrevreviewDaterevsupportcategory
667774260697725/02/2020Low Intensity: 1st Step
667774261785613/03/2020High Intensity: 1st Step
667774262365925/03/2020Low Intensity: 1st Step
667774263321708/04/2020High Intensity: 1st Step
667774264179522/04/2020 
667774264652929/04/2020Low Intensity: Stepped Down
667774265972220/05/2020Low Intensity: 1st Step
668446249091920/08/2019High Intensity: 1st Step
668446249092010/09/2019Low Intensity: 1st Step
668446250905524/09/2019High Intensity: 1st Step
668446250910108/10/2019 
668446252838405/11/2019High Intensity: 1st Step
668446254620922/11/2019High Intensity: 1st Step
668446254621006/12/2019High Intensity: 1st Step
668446257766207/01/2020 
669941265139006/05/2020Low Intensity: 1st Step
669941265448212/05/2020Low Intensity: 1st Step
669941268368906/07/2020High Intensity: 1st Step
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mihaita_baro , Try if a new column like this can help

 


New column =
var _cli =[ClientId]
var _dt = [revreviewDate]
Var _max = maxx(filter(Table, [ClientId] =_cli && [revreviewDate] <_dt ), [revreviewDate])
var _st = maxx(filter(Table, [ClientId] =_cli && [revreviewDate] =_max ), [revsupportcategory])
return
if(_st ="Low Intensity" && [revsupportcategory] = "High Intensity" , 1, blank())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mihaita_baro , Try if a new column like this can help

 


New column =
var _cli =[ClientId]
var _dt = [revreviewDate]
Var _max = maxx(filter(Table, [ClientId] =_cli && [revreviewDate] <_dt ), [revreviewDate])
var _st = maxx(filter(Table, [ClientId] =_cli && [revreviewDate] =_max ), [revsupportcategory])
return
if(_st ="Low Intensity" && [revsupportcategory] = "High Intensity" , 1, blank())

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.