Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61603

Transferring Power BI dataset to dataflow, getting Token Eof expected error on custom column

$
0
0

Hi All

 

I am transfering a large dataset that takes ages to refresh in PowerBi desktop to a Dataflow on the PowerBi online service. I have the follwing Custom Column in my current desktop quiery.

 

Duration* = var _newavg =AVERAGEX(filter('Data','Data'[Last Operator]=EARLIER('Data'[Last Operator]) && 'Data'[Customer Name]=EARLIER('Data'[Customer Name]) && 'Data'[Production Task Name]=EARLIER('Data'[Production Task Name]) && 'Data'[Duration]<15),'Data'[Duration]) return if('Data'[Duration]<15,'Data'[Duration],_newavg)

 

This works fine in the desktop but when I add the same column in the Dataflow UI I get the a warning of 'Token Eof expected'.

(Please note, some of the column names are different below but are correct to the columns in the Dataflow table).

 

The error seems to be with the var '_newavg'. I've tried chaging the var name but get the same error. 

 

Any ideas what's causing this?

 

Thanks

Thom

Capture.JPG


Viewing all articles
Browse latest Browse all 61603

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>