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

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.

Reply
ravitejaballa
Helper III
Helper III

How to validate data with list of items using DAX

Hi Team,

 

In my app, i am trying to validate does device have latest software version.

DeviceApplicationAppVersionIsSoftwareUptoDate
APowerBI3Jan2018No
BPowerBI15Feb2019No
CPowerBI5Nov2019Yes
DPowerBI10Feb2020Yes

 

I created column "IsSoftwareUptoDate" to validate with hard coded "AppVersion" value like below.

 

IsSoftwareUptoDate =
var version1 = "5Nov2019"
var version2 = "10Feb2020"
RETURN
IF(
OR (version1 == [AppVersion], version2 == [AppVersion]),
"Yes",
"No"
)

 

But now i want to get AppVersion from master data instead of hardcoded value.

My Master Data:

ApplicationLatestSoftwareVersion
PowerBI10Feb2020 | 5Nov2019

 

Note: "LatestSoftwareVersion" can have multiple version with delimiter '|'

 

I applied 'Text.Split([LatestSoftwareVersion], "|")'  and made list to create new row, so table will be

 

ApplicationLatestSoftwareVersionlistOfVersions
PowerBI10Feb2020 | 5Nov201910Feb2020
PowerBI10Feb2020 | 5Nov20195Nov2019

 

Now i want to use "listOfVersions" to validate "AppVersion" using DAX.

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @ravitejaballa 

 

Please see the attached file with 2 approaches, one Power Query and second DAX Measure.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

1 REPLY 1
Mariusz
Community Champion
Community Champion

Hi @ravitejaballa 

 

Please see the attached file with 2 approaches, one Power Query and second DAX Measure.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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