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
TheRockStarDBA
Frequent Visitor

How can I compare different versions in PowerBI

Hello All,

 

I am trying to use powerbi to generate a report wherein I show servers based on environments (DEV/UAT/PRO), versions (SQLServer 11.0, 12.0, 13,0), edition (Dev / Enterprise / Standard). Its all working fine.

 

What I want to achieve is to have a KPI that tells me how many servers are in compliance of the builds that we have certified ?

 

Basically, I want to compare versions of sql server 

 

e.g. The latest build for sql server 2014 is SP2+CU1 = 12.0.5511.0. My current build is 12.0.2370.0 (RTM+CU2).

 

How can I have PowerBI report that my version is not in compliance ? 

 

Thanks,

Kin

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee

@TheRockStarDBA

 

If two tables in your case, try a measure as below.

Capture.PNG

 

KPI = 
CALCULATE (
    COUNTROWS ( 'Your server versions' ),
    FILTER (
        'Your server versions',
        CONTAINS (
            'Latest versions',
            'Latest versions'[Version], 'Your server versions'[Version]
        )
    )
)
    / COUNTROWS ( 'Your server versions' )

View solution in original post

2 REPLIES 2
Eric_Zhang
Employee
Employee

@TheRockStarDBA

 

If two tables in your case, try a measure as below.

Capture.PNG

 

KPI = 
CALCULATE (
    COUNTROWS ( 'Your server versions' ),
    FILTER (
        'Your server versions',
        CONTAINS (
            'Latest versions',
            'Latest versions'[Version], 'Your server versions'[Version]
        )
    )
)
    / COUNTROWS ( 'Your server versions' )
BobF
Helper I
Helper I

One suggestion l have to is to grab the data from this page https://buildnumbers.wordpress.com/sqlserver/.  Combine all the data into one table, l would suggest a column with the version number so you filter by version.  Then add column to indicate if that version is valid.  This table could be maintained in a spreasheet for ease of use.  If you update the spreadsheet then all you need to do is update from the data source. 

 

The other data source is the one which lists all the servers and the different versions.  Use a caclucated column to do a look up of the version number to the data source created above and return the column which contains the value if the verision number if complaint or not.  Or at least thats the approach l would try.

 

Robert

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.