Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi! I have a bunch of records (events) coming from the Firebase. Each contains a device operation system version (e.g. Android 9, Android 11). So, I need to create a measure to show the latest OS version for each user. Trying to simply maximize one gives an incorrect result, 'cos "Android 9" > "Android 10". I also tried to handle this via the LASTNOBLANK command, but it doesn't work.
I could use the separate table with the information needed (via SQL), but it's crucial to maintain the report flexible with least aggregated data
Best regards
Hi VKorikhin
Please conisder this solution and smash the thumbs up button.
In Power Query ...
The rest should be straight forward
@Anonymous Could you provide some example data?
Hi, @Anonymous
Try the following measures:
os_num =
VALUE ( MID ( MAX ( 'Table'[os] ), 9, 3 ) )
Max(os) =
CALCULATE (
MAX ( 'Table'[os] ),
FILTER (
'Table',
'Table'[name] = MAX ( 'Table'[name] )
&& 'Table'[device] = MAX ( 'Table'[device] )
&& [os_num]
= MAXX ( ALLEXCEPT ( 'Table', 'Table'[name], 'Table'[device] ), [os_num] )
)
)
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
An option could be to create a calculated column with only the number for each version. In that case 10 > 9. You can then create a formula based on the max of this column.
Hope this helps!
Jori
If I answered your question, please mark it as a solution to help other members find it more quickly.
Connect on Linkedin
There're such versions as 7.1.1
It would be nice not to create additional columns. It's a lot of data
Please consider this solution ....
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
86 | |
76 | |
66 |
User | Count |
---|---|
149 | |
117 | |
111 | |
106 | |
95 |