Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I have data in below format and I am struggling to create a simple bar chart where I can have month,Year on X axis and Region or Business unit on Y axis. Any ideas on how I can restructure the data in Power BI. I have month as columns and year on rows.
Solved! Go to Solution.
HI @Anonymous
One way would be to make two copies of this table in Power Query. Filter the first where the attribute column contains the text "-Qty" and filter the other where the attribute column contains the text "-Revenue".
Then you can merge the tables (horizontally) using a full outer join and match on the first three columns. This should give you something pretty close to what you need. 🙂
Power Query is pretty powerful
HI @Anonymous
Go into the Power Query Editor, select your first three columns in the preview grid and then hit the "Unpivot other columns" button.
This should pivot your month column data around onto rows where it will be much easier to work within your charts
@Phil_Seamark Thats great. thank you. But I have one other issue here. In the below image, other than qunatity as attribute, I have other facts like revenue which is where having chanllenge on reporting on quantity , revenue separately. Highly Appreciate your help! Thanks
HI @Anonymous
One way would be to make two copies of this table in Power Query. Filter the first where the attribute column contains the text "-Qty" and filter the other where the attribute column contains the text "-Revenue".
Then you can merge the tables (horizontally) using a full outer join and match on the first three columns. This should give you something pretty close to what you need. 🙂
Power Query is pretty powerful
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |