Forum Discussion
scavalcantes
8 years agoRegular Visitor
Calculate
I have the image table below, where I need to generate a custom column in the query editor with statistics (average, minimum, maximum, mode.sngl and etc) of the columns Gra1 through Gra5 and Esp1 thr...
stretcharm
Memorable Member
8 years ago
You could either unpivot these columns and an calculate based on the attribute (Column) group.
http://radacad.com/pivot-and-unpivot-with-power-bi
or you could transpost pass the data to r which is very good at working with data sets like this and applying stats.
https://docs.microsoft.com/en-us/power-bi/desktop-r-in-query-editor
scavalcantes
8 years agoRegular Visitor
The first option was to use the pivot, but the performace on a machine (i5, 6GB raw, 64bit and 1TB of hd, was compromised and when using dax union function to update only table 2018, simply the machine hangs.
Regarding the R still studying the possibility, but needs to be faster.
Would you have another solution?