Forum Discussion

GuidoPinares's avatar
GuidoPinares
Helper I
3 years ago
Solved

Dealing with Targets

Hi Community,

 

First of all thanks for your time, this problem could be very easy but im struggling trying to find the answer, thanks in advance for any suggestion:

 

I have 2 Tables {Sales, Vendor}, each of the vendors have a target but it will depend on his category that is include in the Vendor Table (FullTime, PartTime, Supervisor) and each of those have a different Target (FullTime T1: 100, T2:200, T3:300; PartTime T1:50, T2:75,T3:125; Supervisor T1:150, T2:275, T3:425)

 

I want to built a target measure that calculate this after the selection of a Vendor Name on a Slicer. My question is how can I capture the value of the column Position of the Vendor Table.

 

Example:

 

Vendor1 is PartTime

Total Sales related to Vendor1 are 65 so Vendor1 surpass the T1 and on way to T2

 

Vendor5 is FullTime

Total Sales related to Vendor5 are 95 so Vendor5 is on way to T1

 

The result should be something like this:


 


 

The report will have a Slicer with the names of the Vendors, each time the user select one It should change.

 

I can't find a way that allow me to change between Target according to the Column [Position] in Vendor Table

 

Any thought will be very welcome!

  • To capture a value from a table you need to use : 

     

     VALUES(Employees[PosititonName])

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    GuidoPinares This is going to depend on what your tables look like.

     

    Sorry, having trouble following, can you post sample data as text and expected output?
    Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

    Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

  • v-xiaotang's avatar
    v-xiaotang
    Community Support

    hi GuidoPinares 

    Thanks for reaching out to us.

    I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

    If you need more help, please let me know.

     

    Best Regards,

    Community Support Team _Tang

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

  • To capture a value from a table you need to use : 

     

     VALUES(Employees[PosititonName])