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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am trying to calculate the average of Exchange Rate for the las 12 periods (ReportingPeriod varchar(6)), So I wrote the following:
Measure 2 = calculate(AVERAGE(ExchangeRatesFacts[ExchangeRate]),TOPN(12,ExchangeRatesFacts,ExchangeRatesFacts[ReportingPeriod]))--- I am using Direct Mode
and when I try to put hte measure2 in any visual I get a weird error message:
Any help is appreciated.
Thank you
Solved! Go to Solution.
Hi @Manar,
Based on my test, TOPN is not supported in Direct Query mode.
Regards,
Yuliana Gu
Hi @Manar,
Based on my test, TOPN is not supported in Direct Query mode.
Regards,
Yuliana Gu
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 50 | |
| 34 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 77 | |
| 41 | |
| 26 | |
| 25 |