Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear All,
I am facing an issue. I need to rank my groups by categorizing them on who used the device first. For example, if group 1 used the device on 5:00 PM on given day and if group B used the device at 5:30 on the same day, then group 1 should be ranked 1 and group 2 should be ranked 2.
Here is the sample data. Help would be highly appreciated.
Thank You,
Kumar Ashwarya
Solved! Go to Solution.
Hi @Kumar11109,
Try this:
Create a calculated table
EarliestAccess = //creates a calculated table that summarizes device the original table by DeviceID and Group ID then adds a new column that returns the earliest access date of a group per device ADDCOLUMNS ( SUMMARIZE ( 'Table', 'Table'[DeviceId], 'Table'[GroupId] ), "Earliest Access", CALCULATE ( MIN ( 'Table'[StartDateTime] ), ALLEXCEPT ( 'Table', 'Table'[GroupId], 'Table'[DeviceId] ) ) )
Then in that calculated table, create a calculated column for rank.
RANK = CALCULATE ( COUNTROWS ( 'EarliestAccess' ), ALLEXCEPT ( 'EarliestAccess', 'EarliestAccess'[DeviceId] ), 'EarliestAccess'[Earliest Access] <= EARLIER ( 'EarliestAccess'[Earliest Access] ) )
Proud to be a Super User!
hope this helps !
I don't think so it's working. I want the ranking for groups, by time, when they accessed the same device.
Hi @Kumar11109,
Try this:
Create a calculated table
EarliestAccess = //creates a calculated table that summarizes device the original table by DeviceID and Group ID then adds a new column that returns the earliest access date of a group per device ADDCOLUMNS ( SUMMARIZE ( 'Table', 'Table'[DeviceId], 'Table'[GroupId] ), "Earliest Access", CALCULATE ( MIN ( 'Table'[StartDateTime] ), ALLEXCEPT ( 'Table', 'Table'[GroupId], 'Table'[DeviceId] ) ) )
Then in that calculated table, create a calculated column for rank.
RANK = CALCULATE ( COUNTROWS ( 'EarliestAccess' ), ALLEXCEPT ( 'EarliestAccess', 'EarliestAccess'[DeviceId] ), 'EarliestAccess'[Earliest Access] <= EARLIER ( 'EarliestAccess'[Earliest Access] ) )
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |