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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am trying to recreate a chart from Excel into Power BI, but I am having trouble getting the x-axis and y-axis to be the same as my original chart. The location should be stacked and months run along the x-axis. Anyone no if this is possible?
Data set:
Data Set
Excel:
Excel Original
Power BI:
Power BI
Solved! Go to Solution.
hi @Anonymous
From your screenshot, we could know that your data structure is this:
So you need to transform your data structure as below:
Step1:
In edit queries, Selected Dec-Total,Jan-Total,Feb-Total...
Then click Unpivot columns
https://radacad.com/pivot-and-unpivot-with-power-bi
Step2:
Now create visual, drag Attribute column in X-Axis, Location into Lenged and Value into Value
and here is sample pbix file, please try it.
Regards,
Lin
hi @Anonymous
From your screenshot, we could know that your data structure is this:
So you need to transform your data structure as below:
Step1:
In edit queries, Selected Dec-Total,Jan-Total,Feb-Total...
Then click Unpivot columns
https://radacad.com/pivot-and-unpivot-with-power-bi
Step2:
Now create visual, drag Attribute column in X-Axis, Location into Lenged and Value into Value
and here is sample pbix file, please try it.
Regards,
Lin
@Anonymous
You should move "location" to legend, "month" column(if any - if not create one) to Axis and the single "total" column to Value.
If it helps, mark it as a solution.
Kudos are nice too.
User | Count |
---|---|
97 | |
73 | |
69 | |
43 | |
23 |