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.
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.
User | date | Skill | Score |
A | 01/01/2020 | 1.1 | 5 |
A | 02/01/2020 | 1.2 | 5 |
A | 03/01/2020 | 1.3 | 4 |
A | 04/01/2020 | 1.1 | 4 |
A | 05/01/2020 | 1.2 | 8 |
A | 06/01/2020 | 1.3 | 6 |
B | 01/01/2020 | 1.1 | 5 |
B | 02/01/2020 | 1.2 | 5 |
B | 03/01/2020 | 1.3 | 4 |
B | 04/01/2020 | 1.1 | 4 |
B | 05/01/2020 | 1.2 | 8 |
B | 06/01/2020 | 1.3 | 6 |
Solved! Go to Solution.
@Anonymous See if this file helps you any.
Attached below signature
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
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
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
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
This is fantastic exactly what i was after thank you ever so much!
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Anonymous , try
calculate(lastnonblankvalue(Table[score], max(Table[Skill])))
calculate(lastnonblankvalue(Table[score], max(Table[Skill])),allselected(Table))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |