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
Anonymous
Not applicable

Show the biggest change based on a group.

I have data that looks something like the table below the real table has 30 users and 40 different skills, I would like to create a single row card, that basically shows
"User A skill 1.2 has seen the biggest change" obviousy A will change based on the slicer i have applied to the page. but i cant work out how to use a measure that will return the biggest change in the table.

UserdateSkill Score 
A01/01/20201.15
A02/01/20201.25
A03/01/20201.34
A04/01/20201.14
A05/01/20201.28
A06/01/20201.36
B01/01/20201.15
B02/01/20201.25
B03/01/20201.34
B04/01/20201.14
B05/01/20201.28
B06/01/20201.36

 

1 ACCEPTED SOLUTION

@Anonymous  See if this file helps you any. 

 

Attached below signature


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

6 REPLIES 6
AllisonKennedy
Super User
Super User

You may want to check out some custom visuals like this one if you are able to use marketplace visuals, https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380950?tab=Overview

To find the biggest change, just do MAX(Score) - MIN(Score), the trick is just considering what filters you want to add/keep remove.

So in your case I think you want to find largest change per Skill?

Do you also want to consider that the change has to be an improvement? So do we need to take date into account or can we just find the overall MAX() - MIN()?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Thats a really good point, i need to take date and only want to know if it was positive. 

@Anonymous  See if this file helps you any. 

 

Attached below signature


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

This is fantastic exactly what i was after thank you ever so much! 

mahoneypat
Employee
Employee

Please try this measure expression in a card visual.  Note it requires that there is a unique value for max.  If there are duplicates, a more complex expression could concatenate those Users/Skills together.

 

NewMeasure =
VAR maxvalue =
MAX ( User[Score] )
VAR maxuser =
CALCULATE ( MIN ( User[User] ), User[Score] = maxvalue )
VAR maxskill =
CALCULATE ( MIN ( User[Skill ] ), User[Score] = maxvalue )
RETURN
"User " & maxuser & " & Skill " & maxskill & " had the greatest change"

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@Anonymous , try

calculate(lastnonblankvalue(Table[score], max(Table[Skill])))

calculate(lastnonblankvalue(Table[score], max(Table[Skill])),allselected(Table))

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.