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
mooneyalan4
Regular Visitor

Trying to define a planned progress based on individuals name.

Okay, thanks for any help anyone can lend here. I've spent way too long trying on my own to get this working but remain unable to so far.

My main table is called 'Structured Talent Development' and it has a column called 'Names'

There are other columns tracking programme completion hours and percentages. One of these is called 'Actual Progress' and shows their current '% Completed'

 

Each person in the 'Names' column will have one of 3 rates of 'Planned Progress' per the table at the bottom. I can assign these based on 'names' column through a table like this one:

NameProgressRate
Employee 1A
Employee 2A
Employee 3B
Employee 4B
Employee 5B
Employee 6B
Employee 7A
Employee 8A
Employee 9A
Employee 10A
Employee 11C
Employee 12B
Employee 13A
Employee 14C
Employee 15C

 

This table has a relationship with 'Structured Talent Development' based on 'Names' and it is <Many to One>

 

What I am struggling with is referring to this table to pick the planned % based on todays date.

 

 ABC
01/10/20238.44%5.47%6.92%
15/10/202312.44%7.96%10.06%
29/10/202316.44%10.45%13.21%
12/11/202317.11%11.19%14.15%
26/11/202317.78%11.94%15.09%
10/12/202321.56%14.18%17.92%
24/12/202325.33%16.42%20.75%
07/01/202426.89%18.16%22.01%
21/01/202428.44%19.90%23.27%
04/02/202432.22%24.13%23.90%
18/02/202436.00%28.36%24.53%
03/03/202439.11%31.84%25.16%
17/03/202442.22%35.32%25.79%
31/03/202445.78%39.30%27.04%
14/04/202449.33%43.28%28.30%
28/04/202453.78%48.26%34.59%
12/05/202458.22%53.23%40.88%
26/05/202460.44%55.72%44.03%
09/06/202462.67%58.21%47.17%
23/06/202464.00%59.70%49.06%
07/07/202465.33%61.19%50.94%
21/07/202466.44%62.44%52.52%
04/08/202467.56%63.68%54.09%
18/08/202468.44%64.68%55.35%
01/09/202469.33%65.67%56.60%
15/09/202470.67%67.16%58.49%
29/09/202472.00%68.66%60.38%
13/10/202474.44%71.39%63.84%
27/10/202476.89%74.13%67.30%
10/11/202477.78%75.12%68.55%
24/11/202478.67%76.12%69.81%
08/12/202480.67%78.36%72.64%
22/12/202482.67%80.60%75.47%
05/01/202583.56%81.59%76.73%
19/01/202584.44%82.59%77.99%
02/02/202586.00%84.33%80.19%
16/02/202587.56%86.07%82.39%
02/03/202589.11%87.81%84.59%
16/03/202590.67%89.55%86.79%
30/03/202591.78%90.80%88.36%
13/04/202592.89%92.04%89.94%
27/04/202594.00%93.28%91.51%
11/05/202595.11%94.53%93.08%
25/05/202596.67%96.27%95.28%
08/06/202597.44%97.14%96.38%
22/06/202598.22%98.01%97.48%
06/07/202598.56%98.38%97.96%
20/07/202598.89%98.76%98.43%
03/08/202599.22%99.13%98.90%
17/08/202599.56%99.50%99.37%
31/08/202599.67%99.63%99.53%
14/09/202599.78%99.75%99.69%
28/09/2025 100.00%100.00%100.00%

 

 

I cant paste the actual file, due to organisation file lockdowns, but can add similar information here if needed.

Really appreciate anyone who takes the time to lend a hand here!

 

1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @mooneyalan4 

 

You can create a calculated column like the below.  Just change the date I have added in the VAR _CurrentDate to TODAY().  I used the 2024,3,17 just to ensure the formula worked.

 

Normally, I'd recommend you unpivot / pivot your columns in Power Query to have the A, B, C columns in a single  Category column and the percentages in a Percent column. However, given there are only three A, B, C columns, you can use SWITCH ( TRUE () with LOOKUPVALUE easily enough.

 

 

Planned Progress = 

VAR _CurrentDate = DATE ( 2024 , 3 , 17 ) // Change "DATE ( 2024 , 3 , 17 )" to "TODAY()"

VAR _PlannedPercentage = 

    SWITCH ( 
        TRUE () , 
        'ProgressRate'[ProgressRate] = "A" , LOOKUPVALUE ( DateRates[A] , DateRates[Date] , _CurrentDate ) ,
        'ProgressRate'[ProgressRate] = "B" , LOOKUPVALUE ( DateRates[B] , DateRates[Date] , _CurrentDate ) ,
        'ProgressRate'[ProgressRate] = "C" , LOOKUPVALUE ( DateRates[C] , DateRates[Date] , _CurrentDate ) , 0 
    )

RETURN
    
IF ( _PlannedPercentage = 0 , 0 , _PlannedPercentage )

 

 

Output works based on the data you provided as per below:

 

TheoC_0-1710959520169.png

 

Hope this helps! 🙂

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

4 REPLIES 4
mooneyalan4
Regular Visitor

For Future Reference. The above worked fine as long as the date 2024,3,17 existed in the list in DatesRate[Dates]
So I made a minor adjustment to the date portion only as follows:

VAR _CurrentDate =
    MINX(
        TOPN(1, ProgressRates, ABS(ProgressRates[Date] - TODAY()), ASC),
        ProgressRates[Date]
    )
TheoC
Super User
Super User

Hi @mooneyalan4 

 

You can create a calculated column like the below.  Just change the date I have added in the VAR _CurrentDate to TODAY().  I used the 2024,3,17 just to ensure the formula worked.

 

Normally, I'd recommend you unpivot / pivot your columns in Power Query to have the A, B, C columns in a single  Category column and the percentages in a Percent column. However, given there are only three A, B, C columns, you can use SWITCH ( TRUE () with LOOKUPVALUE easily enough.

 

 

Planned Progress = 

VAR _CurrentDate = DATE ( 2024 , 3 , 17 ) // Change "DATE ( 2024 , 3 , 17 )" to "TODAY()"

VAR _PlannedPercentage = 

    SWITCH ( 
        TRUE () , 
        'ProgressRate'[ProgressRate] = "A" , LOOKUPVALUE ( DateRates[A] , DateRates[Date] , _CurrentDate ) ,
        'ProgressRate'[ProgressRate] = "B" , LOOKUPVALUE ( DateRates[B] , DateRates[Date] , _CurrentDate ) ,
        'ProgressRate'[ProgressRate] = "C" , LOOKUPVALUE ( DateRates[C] , DateRates[Date] , _CurrentDate ) , 0 
    )

RETURN
    
IF ( _PlannedPercentage = 0 , 0 , _PlannedPercentage )

 

 

Output works based on the data you provided as per below:

 

TheoC_0-1710959520169.png

 

Hope this helps! 🙂

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Wow, thank you! That has worked perfectly. I cannot even begin to tell you how much I appreciate your expertise and willingness to help. You may have saved my sanity here! Thank you!

@mooneyalan4 it's a pleasure!  And I am truly glad that you came to the Community for help. This platform is a place with some truly gifted and talented people that, more than anything, love to help others. 

 

Wishing you all the best in your BI journey champion!

 

Theo 🙂

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.