Forum Discussion
Nabil20_24
Helper I
1 year agoDrill through using inactive relationship
I have a client dataset structured as follows Client Name Status Active Date Inactive Date Alex Active 05/02/2024 Bella Inactive 18/06/2023 12/01/2024 Chris Active 22/09/202...
v-csrikanth
Community Support
1 year agoHi Nabil20_24
You can perform following transformations to achieve this result.
- Unpivot Active Date and Inactive Date
- Extract Active/Inactive text from Attribute column to create another status column
-
Add a flag that would filter out the duplicate records.
Specifically, those who are inactive but have active date. So, we remove them and categorize it as inactive.Use custom column to create flag column
Finally, filter out 0s and keep 1s to load the data.
5. Pull
Month from Date – X-axis
Count Client – Y axisStatus2 – Legend
Use slicer – Year (from date table), Month(From date table)
Modelling-
Active date--------Date[Date]
Then you will get the desired result.
For 2023For 2022
Hope this helps!
Attached file for your reference.