Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bschmiedeler
Frequent Visitor

Use DAX to breakdown iOS and Android OS versions

I have an Azure SQL file that lists mobile devices. One field is the DeviceOS, which is formated as follows:

 

Android 8.0.0

iOS 12.4.0

Android 7.1.2

 

and so on.

 

I created a new column with the following DAX formula: 

 

DevOSAndroidiOS = If (Left(Device[DeviceOS],3) = "iOS","iOS","Android")
 
So I can seee the total number of iOS versions and Android versions.
 
However, I am stumped on how to extract the number of different iOS version, and number of different Android versions. So if I have 100 iOS devices, I would like to know how many iOS 12.x, iOS 11.x, and iOS 10.x versions (we only support iOS version 10.x and above). So if we have 50 iOS 12 and 25 iOS 11 and 25 iOS 10 versions, I want to have those numbers and the percent of the iOS total. Same with Android. 
 
Cannot figure out how to do this?
 
Any help would be greatly appreciated.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bschmiedeler,


My suggestion is:
1) Using PowerQuery;
2) Split column "DeviceOS" by Delimeter;
3) Select "Space" as delimiter;
4) Split at Right-most delimiter;

image.png

 

5) Change the second column type, from "Int64.Type" to "type text"

From:
image.png

 

To:image.png

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @bschmiedeler,


My suggestion is:
1) Using PowerQuery;
2) Split column "DeviceOS" by Delimeter;
3) Select "Space" as delimiter;
4) Split at Right-most delimiter;

image.png

 

5) Change the second column type, from "Int64.Type" to "type text"

From:
image.png

 

To:image.png

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors