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
natasha519
Helper II
Helper II

Filled Bar Chart showing Target and Actual Values in one bar

Is it possible to get a bar chart that shows the target value and then actual value in one bar? Image attached for reference.

 

Sample data as follows:

 

YearActualGoal
20231525
2024025
2025025
2026025
2027025

 

natasha519_0-1677159933949.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @natasha519 

 

You can try the following methods.

Measure:

@Goal = MAX(SUM('Table'[Goal])-SUM('Table'[Actual]),0)

vzhangti_0-1677655090776.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
Gowtham_Selvam
Resolver I
Resolver I

In power Query Editor, just unpivot the actual and goal columns.Screenshot 2023-02-27 165804.pngScreenshot 2023-02-27 170659.png

 

Then choose the stacked column chart and drag the value in y axis and year in x axis.

 

If I answered the question,mark it as solution.

v-zhangti
Community Support
Community Support

Hi, @natasha519 

 

You can try the following methods.

Measure:

@Goal = MAX(SUM('Table'[Goal])-SUM('Table'[Actual]),0)

vzhangti_0-1677655090776.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

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.