cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joacb761
Frequent Visitor

Trying to create a summary table of min, max, most recent across different categories per client ID

hey everyone,

 

I have a situation where I have an assessment that is given to clients at a structured intervals. It's item on the assessment is a different category where the hope is to decrease the score from 3 - 0. I am trying to create a bar visual that shows the average score on each item at BASELINE (the first time the assessment is given), EVER (the max score on that item that each client has, and LAST (score on the most recent assessment). I'm hitting a wall on how to create the summary table I believe I need. Can anyone help?

 

I currently have two tables

 

Assessment (Client per row)

ClientAssessmentIDDatecategory1category2
902103735439/1/202231
9021037354412/1/202212
902113735459/1/202200
9021122121012/1/202212
902112212103/1/202322

 

Assessment (value per row)

AsssessmentIDcategoryvalue
37354313
37354321
37354411
37354422

 

 

I'm trying to create a third summarized table that looks like this:

ClientIDCategoryRatingTimeFrame
90210category13

baseline

90210category13ever
90210category11last
90210category22

baseline

90210category23ever
90210category20last
90211

 category1

1baseline
90211 category12ever
90211 category10last
90211

 category2

1baseline
90211 category22ever
90211 category22last

 

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Joacb761 

Thanks for your sample data , and for your description, you want to get  "BASELINE (the first time the assessment is given), EVER (the max score on that item that each client has, and LAST (score on the most recent assessment).".

But the end result in your table , i am not surely understand how we can calcualte this by your two tables:

vyueyunzhmsft_0-1684895531169.png

Can you provide some more detailed calculation logic to us like a mathematical formula?

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors