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.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |