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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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
Super User
Super User

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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