but results an error Error: Column `colDiff` must be length 1 (the group size), not 0
and many "warnings" :
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
The code works perfectly in R Studio, the dplyr version is 0.8.0.1 (that is supposed to be supported by PowerBI) and the package is installed in the same path of others (like RODBC and stringr) that works fine.