Forum Discussion
neilmacmullen
8 years agoFrequent Visitor
Working with time-based IOT data in PowerBi - advice needed
I'm new to PowerBI and struggling mightily to get it to show me 'simple' queries on my data. I'm used to writing LINQ queries in C# and probably suffering from trying to map this mindset onto DAX....
v-chuncz-msft
Community Support
8 years ago
You may try TOPN Function.
neilmacmullen
8 years agoFrequent Visitor
Thanks Sam. The TOPN/MAXX combination looks like the 'missing link' to emulate the OrderBy/FirstOrDefault part of my query. My next problem is to make this reusable so I can parameterise the table/column names and filter condition. I suspect this means diving into M and finding equivalents of those operations. Will post here if I make progress.