Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
Need urgent help. I am working on the below data with requirements below. @heaher_iTalent @Pragati @Greg_Deckler
Requierement1 - Need to group the cases were the flow of state is from non zero to zero as per ascending order of state time with an ID column. Groups are coloured in different colours. Output shown in Requierement2.
Requirement2 - Identify the groups were state type 1 is included. There can be state type zeros also in this group. Output in Requirement3
Requirement3 - Identify the groups were state is 2 against the first state type 1 in each group.Output in Requirement 4
Requirement4 - For each id get the min of the state_time at the first state type 1 and max of the state time. Output in output5
output5
Similar to output5 we will have to repeat the same steps for multiple object ids. Suppose below is the final output I get for each objectid. From here I need to understand which all IDs from each object id overlaps mutually. For example IDs b, y and m will overlap here mutually and I need to find the overlap duration here which is 2:35 - 2:45. In an object ID no IDs will overlap.
Note one ID from object ID can overlap with multiple IDs in Obj ID 2 or 3 and that is making my life difficult. Also more object IDs can get added to this list and I need to find a logic that works without hardcoding them. Please help.
Solved! Go to Solution.
Hi @Vivek2456 ,
check if my solution is ok for you.
https://1drv.ms/u/s!Aj45jbu0mDVJi21V7mLokpYI0B9m?e=bZisFN
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Vivek2456 ,
check if my solution is ok for you.
https://1drv.ms/u/s!Aj45jbu0mDVJi21V7mLokpYI0B9m?e=bZisFN
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. Apologies but the dara is confidential to share. If possible could you look at the last requirement alone and help me with the solution. So the data I get in power query will be like the table below and I am looking to identify the cases that overlap mutually.
Hi @Vivek2456 ,
please send sample data (not confidential) in text or excel form for at least 3 object_id. Thanks
Sure I have uploaded the file in
Hi @Vivek2456 ,
see my pbi file. If that´s ok, please send us your database with at least 3 object_id, then I can go one step further trying to find a solution for the last requirement.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
98 | |
38 | |
37 |
User | Count |
---|---|
154 | |
120 | |
73 | |
73 | |
63 |