Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 48 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 104 | |
| 39 | |
| 27 | |
| 27 |