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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Caitlin_Knox
Advocate III
Advocate III

Best way to show individual goals

Wondering if anyone has suggestions for me. What is the best way to show multiple calculaed columns in one visualization. They are calculated goals, specific to the individual. Id like the ability to 'sort by' and it show in some type of order and also have their names as the data labels next to the bar. Hope that makes sense. Only two are shown here, but there are actually going to be about 15 individuals2017-02-09_10-08-00.png

1 ACCEPTED SOLUTION

Hi @Caitlin_Knox,

 

If I understand you correctly, you should be able to follow steps below to get your expected result.

 

1, Create a new table with a single column of the name of your cal column like below.

 

t1.PNG

 

2. Use the formula below to create new measure.

Measure =
SWITCH (
    VALUES ( Table1[Name] ),
    "Total Sales", [Total Sales],
    "LY Sales", [LY Sales]
)

3. Show the measure with the "Name" column on a Chart like below.

 

measurebyname1.PNG

 

Regards

View solution in original post

8 REPLIES 8
Vish24
Helper II
Helper II

Hi @Caitlin_Knox ,

 

Are you able to do that? I am also making similar chart. I have 15 individuals with different goals. I am trying to make a bar chart with  their achievement YTD and want to show the goals in a line on the bar chart. Could you please share if you are able to do that.

Thank  You!

Greg_Deckler
Community Champion
Community Champion

Perhaps put your Employee name as the Axis instead of the Legend? Not exactly sure what you are going for.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

2017-02-09_10-08-00.png

@Greg_DecklerSo each individual has a calculated column that computes their personal goal. The name of the calcluated column is the individual. I really just want the name of the calcluated column to show on the x-axis under that value

Hi @Caitlin_Knox,

 

If I understand you correctly, you should be able to follow steps below to get your expected result.

 

1, Create a new table with a single column of the name of your cal column like below.

 

t1.PNG

 

2. Use the formula below to create new measure.

Measure =
SWITCH (
    VALUES ( Table1[Name] ),
    "Total Sales", [Total Sales],
    "LY Sales", [LY Sales]
)

3. Show the measure with the "Name" column on a Chart like below.

 

measurebyname1.PNG

 

Regards

@v-ljerr-msft@Greg_DecklerI don't understand why a second table would be required. I created a measure for each of my calcluated columns to use in a Switch statement but am getting the error that 'the expression refers to multiple columns. Multiple columns cannot be converted to a scalar value'.

Maybe if I share more of the actual logic.

I first create a calcualted column to only perform a calculation if the lookup code matches. This is repeated for 15 individuals. Each of their goal amounts/lookup codes are different.

MonthEmployee2 =
IF (
    'Opportunity Sales Report'[OwnerLookupCode] = "KUEAL1",
    DIVIDE ( 'Opportunity Sales Report'[CurrentRevenue], 4167 ),
    BLANK ()
)

Then I created a measure to create the SUM of those decimal values. The only reason I added this measure is to insert it into the Switch statement.

M Employee2 = Sum('Opportunity Sales Report'[MonthEmployee2])

So, then I'm trying to replace the name of each of these measures with just the actual employee name (without the M indicating Month)

Monthly Goals =
SWITCH (
    VALUES ( 'Opportunity Sales Report' ),
    "Employee1", [M Employee1],
    "Employee2", [M Employee2],
)

Could you create a new table like:

 

Employee,Goal%

Employee1, #

Employee2, #

 

Link this table to your other table(s)? and your "Goal %" column would be the calculation of their individual goals. Then just put Employee as the Axis.

 

Really hard to come up with the solution without seeing how the original data is laid out.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_DecklerThe employee names you see are the names of the calcluated columns

Can you give me a sense of you data? I am having trouble picturing it. Is it something like:

 

Column, Column 1, Employee 1, Employee 2, Employee 3, Employee 4

data,data,15%,12%,13%,11%

 

?

 

Trying to wrap my head around it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.