Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Community,
Looking for help for this problem. I have one table containing Visitor ID, Date/Time and Sensor.
I want to calculate which sensor the Visitor ID moved to next, so I can do a flow diagram (highlighted in yellow below)
Any ideas?
Solved! Go to Solution.
HI @Anonymous
Try this calculated Column
Sensor to =
VAR NextTime =
    CALCULATE (
        MIN ( Table1[Time] ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Date], Table1[Visitor_ID] ),
            Table1[Time] > EARLIER ( Table1[Time] )
        )
    )
RETURN
    CALCULATE (
        FIRSTNONBLANK ( Table1[Sensor], 1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Date], Table1[Visitor_ID] ),
            Table1[Time] = NextTime
        )
    )
					
				
			
			
				HI @Anonymous
Try this calculated Column
Sensor to =
VAR NextTime =
    CALCULATE (
        MIN ( Table1[Time] ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Date], Table1[Visitor_ID] ),
            Table1[Time] > EARLIER ( Table1[Time] )
        )
    )
RETURN
    CALCULATE (
        FIRSTNONBLANK ( Table1[Sensor], 1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Date], Table1[Visitor_ID] ),
            Table1[Time] = NextTime
        )
    )
					
				
			
			
				Hi @Anonymous,
I'm glad to hear that you have resolved your issue. Please kindly mark the corresponding reply. It will help others with relevant issue find the answer more easily.
Thanks,
Xi Jin.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.