The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have 2 columns in my dataset namely [name] and [mathscore] and i want to show the barchart with that but failed to do that.
Can anyone will tell how to write the syntax for this.
Thanks in Advance.
Solved! Go to Solution.
Hi @Anonymous,
Based on my test, you could use the ggplot function to show a barchart in Power BI:
library(ggplot2) # Basic barplot p<-ggplot(data=dataset, aes(x=dataset$Name, y=dataset$mathscore)) + geom_bar(stat="identity") p
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hi @Anonymous,
Based on my test, you could use the ggplot function to show a barchart in Power BI:
library(ggplot2) # Basic barplot p<-ggplot(data=dataset, aes(x=dataset$Name, y=dataset$mathscore)) + geom_bar(stat="identity") p
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |