March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello.
I'm trying to create a calculated measure that would COUNT hasExtPower=TRUE for a certain PublicDeviceId. This measure must count only the last 10 entries (GpsTime DESC).
The output should look like this
SN Count of last 10 messages TRUE
29503 5
Solved! Go to Solution.
@Domen , Create a rank column
Rank GpsTime = rankx(Table, Table[GpsTime],,desc, dense)
countrows(filter(Table, Table[Rank GpsTime ]<= 10 && [hasExtPower]=TRUE() ) )
@Domen , Create a rank column
Rank GpsTime = rankx(Table, Table[GpsTime],,desc, dense)
countrows(filter(Table, Table[Rank GpsTime ]<= 10 && [hasExtPower]=TRUE() ) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
7 |
User | Count |
---|---|
37 | |
31 | |
16 | |
16 | |
12 |