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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
shubri
New Member

Creating Target line with multiple column values

Hello, I am struggling to create a bar graph which has last year values compared to this year values plus desired target. 

I have 5 columns for each value and the main issue is, when I make selection where values  arent present, the trend line and past year data messes up as it recalculates it up to 100%.

 

So far I have created bar charts, previous and current year and I have added another table with target values for each category.

 

And it works ok, until you try to drill down and select something that has no one or more categories, lets say, it misses 3 and 4. 

 

 

This is the data example, it just a count of five different values in the column:

value, count

1 5

2 10

3 50

4 60

5 100

 

If selection is made against subject without some of the values, it completely scramles the graph, leaving it with only values from that subject. 

 

I would need past year and trend line to be static, regardles of selection. 

 

Thanks, 

 

 

 

 

 

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@shubri,

 

I would need past year and trend line to be static, regardles of selection. 

Based on your requirement, you could use a Line and clustered column visual, and add your trend of last year to Line values.
Capture.JPG

 

If this is not what you want, please provide us more information about your report, so that we can make further analysis. You can upload a pbix file to Onedrive or any web storage and share the link. Do mask sensitive data before uploading.

 

Regards,
Charlie Liao

Hi Charlie , thanks for lookin into!

 

let me try to put this in other way. Issue with the line is that it follows the selection.

 

I have made one example, on the left is when selection has all the values in it, from 1 to 5. On the right, when I select department or manager that might not have all the values present, in this example 1, 2 and 5 arent present, the target line drops that values also and recalculates its values so it shows 100% at all times. I would like to keep it as on the left, but be able to choose departments/managers without some of the values, its quite normal that you do not have full range of values in your team. 

 

When all data is presentWhen all data is presentWhen department without 1, 2, and 5 is selectedWhen department without 1, 2, and 5 is selected

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.