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
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 45 | |
| 35 | |
| 30 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 38 | |
| 21 | |
| 21 |