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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 159 | |
| 132 | |
| 118 | |
| 79 | |
| 53 |