Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I've the following table:
DTAP | Network |
null | Network1 |
Production | Network1 |
Acceptance | Network1 |
Development | Network2 |
Test | Network2 |
Development | Network3 |
Production | Network3 |
Acceptance | Network3 |
I need to determine the following:
for which networks the environment production exists than the network is labelled as production. So network 1 and 3 are labelled as production.
Result:
DTAP | Network | Label |
null | Network1 | Production |
Production | Network1 | Production |
Acceptance | Network1 | Production |
Development | Network2 | Non production |
Test | Network2 | Non production |
Development | Network3 | Production |
Production | Network3 | Production |
Acceptance | Network3 | Production |
Thanks for your help in advance!
Solved! Go to Solution.
@Sander_NL Maybe:
Label Column =
VAR __Network = [Network]
VAR __DTAP = SELECTCOLUMNS(FILTER('Table',[Network] = __Network),"DTAP",[DTAP])
RETURN
IF("Production" IN __DTAP,"Production","Non production")
Hi Sander,
You can also use below measure.
@Sander_NL Maybe:
Label Column =
VAR __Network = [Network]
VAR __DTAP = SELECTCOLUMNS(FILTER('Table',[Network] = __Network),"DTAP",[DTAP])
RETURN
IF("Production" IN __DTAP,"Production","Non production")
Thanks Greg! This works perfect!
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
98 | |
96 | |
68 | |
67 |