Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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() ) )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |