Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
my data looks like this
grade id, run id, timestamp, categoryid, measurevalue, speedvalue,
i need to create a following measure, which will show all values for measurevalue with following condition, what is the best way to do it?
1- pick last 5 runs (run ids are usually incremental ids)
2- where categoryid = xyz
3- where grade id = abc
4- where speed value > 150
Solved! Go to Solution.
The final measure depends on your Matrix.
The Top 5 table can be calculated like this:
=
TOPN (
5,
CALCULATETABLE (
Data,
Data[categoryid] = "xyz",
Data[grade id] = "abc",
Data[speed value] > 150
),
Data[run id], DESC
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
The final measure depends on your Matrix.
The Top 5 table can be calculated like this:
=
TOPN (
5,
CALCULATETABLE (
Data,
Data[categoryid] = "xyz",
Data[grade id] = "abc",
Data[speed value] > 150
),
Data[run id], DESC
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!