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
laura_ESNH
Frequent Visitor

How do I calculate a % of a group with improved scores over time

I have a group of people that are accessed on a task on a daily basis. They are give an score from 1 to 5. If they are not assessed on a particular day, they are given a zero. I need to calculate the % of the group that has shown improvement over time. 

 

My data looks like this...

IDAssessement DateGoalNeedGoal Need Score
ID0004448/1/2019Post-Secondary Education/Training Goal0
ID0004449/17/2019Post-Secondary Education/Training Goal0
ID0004449/24/2019Post-Secondary Education/Training Goal0
ID0004449/25/2019Post-Secondary Education/Training Goal1.5
ID0004449/26/2019Post-Secondary Education/Training Goal0
ID00044410/8/2019Post-Secondary Education/Training Goal0
ID00044410/9/2019Post-Secondary Education/Training Goal2.33
ID00044410/15/2019Post-Secondary Education/Training Goal0
ID00044411/15/2019Post-Secondary Education/Training Goal0
ID00044412/16/2019Post-Secondary Education/Training Goal0
ID00044412/17/2019Post-Secondary Education/Training Goal0
ID00044412/18/2019Post-Secondary Education/Training Goal1
ID0004441/22/2020Post-Secondary Education/Training Goal0
ID0004441/23/2020Post-Secondary Education/Training Goal4
ID0004568/1/2019Post-Secondary Education/Training Goal3
ID0004568/6/2019Post-Secondary Education/Training Goal4
ID0004569/3/2019Post-Secondary Education/Training Goal2
ID0004569/5/2019Post-Secondary Education/Training Goal2
ID0004569/10/2019Post-Secondary Education/Training Goal2
ID0004569/12/2019Post-Secondary Education/Training Goal2
ID0004569/17/2019Post-Secondary Education/Training Goal2
ID0004569/19/2019Post-Secondary Education/Training Goal2
ID0004569/24/2019Post-Secondary Education/Training Goal2
ID0004569/26/2019Post-Secondary Education/Training Goal2
ID00045610/1/2019Post-Secondary Education/Training Goal2
ID00045610/3/2019Post-Secondary Education/Training Goal2
ID00045610/8/2019Post-Secondary Education/Training Goal3
ID00045610/10/2019Post-Secondary Education/Training Goal2
ID00045610/15/2019Post-Secondary Education/Training Goal2
ID00045610/17/2019Post-Secondary Education/Training Goal2
ID00045610/22/2019Post-Secondary Education/Training Goal3
ID00045610/24/2019Post-Secondary Education/Training Goal3
ID00045610/29/2019Post-Secondary Education/Training Goal3
ID00045610/31/2019Post-Secondary Education/Training Goal2
ID00045611/5/2019Post-Secondary Education/Training Goal3
ID00045611/7/2019Post-Secondary Education/Training Goal0
ID00045611/12/2019Post-Secondary Education/Training Goal0
ID00045611/14/2019Post-Secondary Education/Training Goal3
ID00045611/19/2019Post-Secondary Education/Training Goal3
ID00045611/21/2019Post-Secondary Education/Training Goal2.33
ID00045611/26/2019Post-Secondary Education/Training Goal3
ID00045612/3/2019Post-Secondary Education/Training Goal0
ID00045612/5/2019Post-Secondary Education/Training Goal2.67
ID00045612/10/2019Post-Secondary Education/Training Goal3
ID00045612/12/2019Post-Secondary Education/Training Goal3
ID00045612/17/2019Post-Secondary Education/Training Goal4
ID00045612/19/2019Post-Secondary Education/Training Goal2.67
ID0004561/2/2020Post-Secondary Education/Training Goal3.67
ID0004561/7/2020Post-Secondary Education/Training Goal4
ID0004561/9/2020Post-Secondary Education/Training Goal3.33
ID0004561/14/2020Post-Secondary Education/Training Goal2.67
ID0004561/16/2020Post-Secondary Education/Training Goal3.33
ID0004561/21/2020Post-Secondary Education/Training Goal0
ID0004561/23/2020Post-Secondary Education/Training Goal3.33
ID0004561/28/2020Post-Secondary Education/Training Goal3.33
ID0004561/30/2020Post-Secondary Education/Training Goal3.33
ID0004628/5/2019Post-Secondary Education/Training Goal2
ID0004628/6/2019Post-Secondary Education/Training Goal0
ID0004628/7/2019Post-Secondary Education/Training Goal2
ID0004628/12/2019Post-Secondary Education/Training Goal2
ID0004628/13/2019Post-Secondary Education/Training Goal0
ID0004628/14/2019Post-Secondary Education/Training Goal0
ID0004628/19/2019Post-Secondary Education/Training Goal0
ID0004628/20/2019Post-Secondary Education/Training Goal0
ID0004628/21/2019Post-Secondary Education/Training Goal0
ID0004622/24/2020Post-Secondary Education/Training Goal0
ID0004622/25/2020Post-Secondary Education/Training Goal0
ID0004622/26/2020Post-Secondary Education/Training Goal0
ID0004622/27/2020Post-Secondary Education/Training Goal0
ID0004622/28/2020Post-Secondary Education/Training Goal0
ID0004624/20/2020Post-Secondary Education/Training Goal4
ID0004624/21/2020Post-Secondary Education/Training Goal3.5
ID0004624/22/2020Post-Secondary Education/Training Goal4
ID0004624/23/2020Post-Secondary Education/Training Goal4
ID0004624/24/2020Post-Secondary Education/Training Goal4
ID0004624/28/2020Post-Secondary Education/Training Goal4
ID0004624/29/2020Post-Secondary Education/Training Goal4
ID0004624/30/2020Post-Secondary Education/Training Goal4
ID0004625/4/2020Post-Secondary Education/Training Goal5
ID0004625/5/2020Post-Secondary Education/Training Goal4
ID0004625/6/2020Post-Secondary Education/Training Goal4
ID0004625/7/2020Post-Secondary Education/Training Goal4
ID0004625/8/2020Post-Secondary Education/Training Goal4

 

I can easily create a line graph that visually shows the progress of an individual or group. I'm struggling with how to turn this into a metric to report the number of individuals that have demonstrated progress on the goal over the course of the assessment period. 

 

Any guidance would be greately appreciated. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@laura_ESNH , You can compare score period over period. with a date table

MTD Score= CALCULATE(SUM(Table[Score]),DATESMTD('Date'[Date]))
last MTD Score= CALCULATE(SUM(Table[Score]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

diff = [MTD Score]-[last MTD Score]
diff % = divide([MTD Score]-[last MTD Score],[last MTD Score])

 

Power BI — MTD
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

Power BI — YTD
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

View solution in original post

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @laura_ESNH ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1597800550913.png

 

Best regards,
Lionel Chen

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

Thank you @v-lionel-msft. I actually already know how to do the line graph. It's turning it into a "reportable" metric (i.e. x% of group demonstrated improvement on their goal), that I'm struggling with. 

Hi @laura_ESNH ,

 

Please provide an expected output table, that is, what data do you hope to obtain through calculation?

 

Best regards,
Lionel Chen

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

amitchandak
Super User
Super User

@laura_ESNH , You can compare score period over period. with a date table

MTD Score= CALCULATE(SUM(Table[Score]),DATESMTD('Date'[Date]))
last MTD Score= CALCULATE(SUM(Table[Score]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

diff = [MTD Score]-[last MTD Score]
diff % = divide([MTD Score]-[last MTD Score],[last MTD Score])

 

Power BI — MTD
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

Power BI — YTD
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

Thank you, @amitchandak. This worked great. 

 

Do you have any suggestions for the following scenario?

 

I have a score for every month of the year. I want to calculuate the difference between the score for January and the score they finish with in December. So, it's not really month over month, it's from the start of the period to the end. Thoughts? ,

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.