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
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |