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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
totalnOOb
New Member

Measure to show software coherence between environments

Hi everyone,

 

I've been working with Power BI for a while but have no background in IT or data analysis in general (no fluency in DAX or similar). Thus I'm struggling quite a lot.

This time I have this issue (i hope I'll be clear):

 

I'm building a report for a customer's EA function.

I'd need a measure or something similar to show clearly if there are differences in software versions for the same Application between production and UAT servers (for the servers related to same software name).

 

I'll elaborate:

this concerns basically 3 of the model "tables" with the indicated columns (they are related)

 

"Server table": machine name; application ID

"Software Table": machine name; Software Name; Software version

"Environment": application ID; machine Name; Environment

 

In one page of the report they can choose an application to see linked information (how many servers it's using, server data, security info,...) and i'd need to also be able to show if, for *selected* application, the version of the software installed on servers in UAT and Production are the same.

basically: based on Application name, tell me if software version (of same software name) from UAT and Production servers are the same or not (if i can get this, then i can use some conditional formatting or stuff like that)

 

Every table comes from a neo4j query (but i cannot use power query at the moment due to authorization issues). The only thing that came into mind was trying to create a single table (just for the measure) with DAX and trying to concatenate but i was not able to (there are multiple servers for single applications, multiple softwares for single server, multiple environments for a single application and multiple versions for a single software and so on) and i didn't elaborate further.

 

e.g.

Application IDMachine name
App1host1
App1host2
App1host3

 

Application IDMachine nameEnvironment
App1host1Production
App1host2UAT
App1host3Dev

 

Machine nameSoftware nameSoftware version
host1OS1v.01
host1SW1v.01
host2OS1v.02
host2SW1v.01
host3OS2v.01
host3SW1v.03

 

 

As you see, i only care about the different software (OS1) version between the UAT and Production servers for the same Application.

 

Hope I was clear enough. Pardon me but english is not my mother tongue and IT isn't either.

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @totalnOOb ,

 

Not sure what your model looks like. I made a demo, please check if it works for your model.

Measure = 
VAR _prod_table =
    CALCULATETABLE(
        VALUES( 'Environment'[Machine name] ),
        'Software Table'[Environment] = "Production"
    )
VAR _uat_table =
    CALCULATETABLE(
        VALUES( 'Environment'[Machine name] ),
        'Software Table'[Environment] = "UAT"
    )
VAR _table =
    UNION( _prod_table, _uat_table )
VAR _con =
    IF( SELECTEDVALUE( 'Environment'[Machine name] ) IN _table, 1 )
VAR _count =
    IF(
        _con,
        COUNTROWS(
            FILTER(
                ALL( 'Environment' ),
                'Environment'[Software name] = SELECTEDVALUE( Environment[Software name] )
                    && 'Environment'[Software version]
                        = SELECTEDVALUE( 'Environment'[Software version] )
            )
        )
    )
VAR _color = IF( _con && _count <= 1, "red")
RETURN
    _color

vcgaomsft_0-1677825720323.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @totalnOOb ,

 

Not sure what your model looks like. I made a demo, please check if it works for your model.

Measure = 
VAR _prod_table =
    CALCULATETABLE(
        VALUES( 'Environment'[Machine name] ),
        'Software Table'[Environment] = "Production"
    )
VAR _uat_table =
    CALCULATETABLE(
        VALUES( 'Environment'[Machine name] ),
        'Software Table'[Environment] = "UAT"
    )
VAR _table =
    UNION( _prod_table, _uat_table )
VAR _con =
    IF( SELECTEDVALUE( 'Environment'[Machine name] ) IN _table, 1 )
VAR _count =
    IF(
        _con,
        COUNTROWS(
            FILTER(
                ALL( 'Environment' ),
                'Environment'[Software name] = SELECTEDVALUE( Environment[Software name] )
                    && 'Environment'[Software version]
                        = SELECTEDVALUE( 'Environment'[Software version] )
            )
        )
    )
VAR _color = IF( _con && _count <= 1, "red")
RETURN
    _color

vcgaomsft_0-1677825720323.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.