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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
kotlonarendra
Frequent Visitor

Unable to perform conditional comparisons between tow decimal values from two different columns

I have a table which has list of windows OS version (data type is decimal)
osVersiondetailed

osVersiondetailed
20,348.1503
20,348.1535
20,348.1450
20,348.1432
20,348.1447
20,348.1432
20,348.1442
20,348.1450
20,348.1450
20,348.1501
20,348.1450
20,348.1501
20,348.1501
20,348.1440
20,348.1501
20,348.1450
20,348.1450
20,348.1450
20,348.1432
20,348.1501
20,348.1442
20,348.1503
20,348.1450
20,348.1450
20,348.1503
19,041.1178
20,348.1503
20,348.1450
19,041.1183
20,348.1450
20,348.1503
20,348.1450
20,348.1450
20,348.1503
20,348.1018
19,041.1176

There is another table which has the details of minimum version
detailedVersion

detailedVersion
20,348.15

 

Tried creating a new columns in the first table which has DAX query to compare each of the entries in osVersiondetailed with detailedVersion and return true if version above the detailedVersion and false if version below detailedVersion
query:


onLatestOSVersionv1 = IF('IntuneHoloLensDevices'[osVersiondetailed] >= RELATED(latestOSVersion[detailedVersion]), True, False)


it return True in all cases.
please let me know where am I doing wrong
1 ACCEPTED SOLUTION
rajulshah
Resident Rockstar
Resident Rockstar

Hello @kotlonarendra ,

 

Please try the below formula:

onLatestOSVersionv1 = 
VAR LookupLastestVersion = MINX(VALUES(latestOSVersion[detailedVersion]),latestOSVersion[detailedVersion])
RETURN
  IF('IntuneHoloLensDevices'[osVersiondetailed] >= LookupLastestVersion, TRUE(), FALSE())

 

Please let me know if this doesn't work.

View solution in original post

2 REPLIES 2
rajulshah
Resident Rockstar
Resident Rockstar

Hello @kotlonarendra ,

 

Please try the below formula:

onLatestOSVersionv1 = 
VAR LookupLastestVersion = MINX(VALUES(latestOSVersion[detailedVersion]),latestOSVersion[detailedVersion])
RETURN
  IF('IntuneHoloLensDevices'[osVersiondetailed] >= LookupLastestVersion, TRUE(), FALSE())

 

Please let me know if this doesn't work.

Thanks, your solution worked.

Regards,

Naren

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors