Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fastspeed33_BI
Regular Visitor

Power BI graph not show same with Excel graph

Hello, I am the beginner of Power BI, Would like to ask the graph question.

 

In the excel shows month together for each valueX

fastspeed33_BI_0-1660145405428.png

 

But for the same data in Power BI

fastspeed33_BI_1-1660145528575.png

 

The Value1 and Value2 show together for each month

fastspeed33_BI_2-1660145801174.png

 

Anyway to show the same with excel ?

1 ACCEPTED SOLUTION

Hi @fastspeed33_BI 

 

In Power BI, you need to modify the structure of the table to make it fit for the column chart. You can use Power Query Editor to do that. Below are my steps. 

 

1. Open Power Query Editor from Home > Transform data

 

2. Select Value1 and Value2 columns at the same time. Unpivot them from Transform > Unpivot Columns

vjingzhang_0-1660729271148.png

 

3. Close Power Query Editor and apply the change to Power BI Desktop. 

 

4. When creating a column chart, add Attribute to X-axis, add Value to Y-axis and add Month to Legend. 

vjingzhang_1-1660729546037.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

 

View solution in original post

6 REPLIES 6
SpartaBI
Community Champion
Community Champion

ChristianDGreat
Resolver I
Resolver I

Actually this is possible but need some modification. 
Is the excel version is the one you really want to mimic?

Yes, it is.... 🙂

Are you looking to have the month right here as well?

ChristianDGreat_0-1660147467033.png

 

Actually, no need, only group month 1 and 2 together for each ValueX

Hi @fastspeed33_BI 

 

In Power BI, you need to modify the structure of the table to make it fit for the column chart. You can use Power Query Editor to do that. Below are my steps. 

 

1. Open Power Query Editor from Home > Transform data

 

2. Select Value1 and Value2 columns at the same time. Unpivot them from Transform > Unpivot Columns

vjingzhang_0-1660729271148.png

 

3. Close Power Query Editor and apply the change to Power BI Desktop. 

 

4. When creating a column chart, add Attribute to X-axis, add Value to Y-axis and add Month to Legend. 

vjingzhang_1-1660729546037.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.