I'm using measures and dimensions from a live ssas connection to create a data frame using R Script in Power BI Desktop. I'm using the data frame to create a geom_bar to show revenue against product categories. R script has recognised my revenue figures as a factor and not a numeric field and so even when I use stat = "identity", i'm getting bars which are of the same lenght and as.numeric doesn't work to change the format from a factor to a numeric field either. What can I do better? Please let me know. Thanks.
↧