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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
i am complete Power Bi newbee, but have a fair amount of experience in coding and also sql.
I try to create a bar chart that has a common axis of a column (state). Each state should be detailed into metrics which are again in a column of the same row. The value of the metric(s) are calculated by summing up a column (Value) of all rows that match the first two criterias (state and metric). I hope I could explain my goal properly 🙂
The desired visualization
The Data Table (view of a sql server)
I cant find a post, tutorial or any other source of help. Thus I would appreciate your help or hints very much.
Thank you
Solved! Go to Solution.
Hi @Anonymous ,
You can create a chart with state as axis, metric to legend, value to value field with summary mode 'sum'.
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
You can create a chart with state as axis, metric to legend, value to value field with summary mode 'sum'.
Regards,
Xiaoxin Sheng
Hi Xiaoxin,
thank you, that worked very well.
Although I needed to delete my original chart and setup an new one, whyever ...
Cheers, Michel
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |