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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
TejasShah
Helper I
Helper I

Combine visual for bar and line graph with Yearly and monthly data

Hello all, this is my 3rd post in a row for this year and I thank the community for supporting and helping me actually learn alot through these solutions which the experts suggest.

Here I have another table as below :

 

MonthCumulativeTargetActual
20220.23  
20230.35  
2024 Target0.25  
2024 Actual0.34  
    
Jan-24 0.250.44
Feb-24 0.250.23
Mar-24 0.250.36
Apr-24 0.25 
May-24 0.25 
Jun-24 0.25 
Jul-24 0.25 
Aug-24 0.25 
Sep-24 0.25 
Oct-24 0.25 
Nov-24 0.25 
Dec-24 0.25 

 

Further I need a combine graph where-in, I have my Yearly cumulative on bar graph and on the same visual I need to also showcase Line graph showing the 2024 monthly actual vs target:

 

TejasShah_0-1709896516445.png

 

Requesting for support, I have tried many times but I am not exactly able to get what I need.

 

Thank you

1 ACCEPTED SOLUTION
v-yifanw-msft
Community Support
Community Support

Hi @TejasShah ,

Thank you for @lbendlin 's quick reply. Based on the information you have provided, you may consider dividing the table into two parts to put in a bar chart and a line chart respectively, and then combine the two charts to achieve the result you want. You can follow the steps below:
1.Copy a new table in Power Query. Keep the first four rows for the first table and delete the first four rows for the second table. Add an index column to both tables.

vyifanwmsft_0-1710136407627.png

vyifanwmsft_1-1710136440599.png

vyifanwmsft_2-1710136491390.pngvyifanwmsft_3-1710136510838.png

vyifanwmsft_4-1710136707989.png

2. Put the data into the visuals respectively, put the index column into tooltips and sort them in ascending order according to the index column.

vyifanwmsft_6-1710136830458.png

 

vyifanwmsft_5-1710136785978.png

3. Adjust the range of y-axis between 0-0.5, open Data labels, close the Title of Y-axis and X-axis.

vyifanwmsft_9-1710136970446.png

vyifanwmsft_10-1710136999047.png

4. Select two visuals at the same time, use Ctrl+G to combine the two visual objects.

Final output:

vyifanwmsft_11-1710137124467.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yifanw-msft
Community Support
Community Support

Hi @TejasShah ,

Thank you for @lbendlin 's quick reply. Based on the information you have provided, you may consider dividing the table into two parts to put in a bar chart and a line chart respectively, and then combine the two charts to achieve the result you want. You can follow the steps below:
1.Copy a new table in Power Query. Keep the first four rows for the first table and delete the first four rows for the second table. Add an index column to both tables.

vyifanwmsft_0-1710136407627.png

vyifanwmsft_1-1710136440599.png

vyifanwmsft_2-1710136491390.pngvyifanwmsft_3-1710136510838.png

vyifanwmsft_4-1710136707989.png

2. Put the data into the visuals respectively, put the index column into tooltips and sort them in ascending order according to the index column.

vyifanwmsft_6-1710136830458.png

 

vyifanwmsft_5-1710136785978.png

3. Adjust the range of y-axis between 0-0.5, open Data labels, close the Title of Y-axis and X-axis.

vyifanwmsft_9-1710136970446.png

vyifanwmsft_10-1710136999047.png

4. Select two visuals at the same time, use Ctrl+G to combine the two visual objects.

Final output:

vyifanwmsft_11-1710137124467.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You seem to already have the solution.  Not sure what you need assistance with?

Hello @lbendlin ,

This graph is on a excel sheet, I need the similar one in PowerBI which I am not able to get it. Requesting for support/help. Thanks 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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