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.
I got the following calculated column but i want to create a measure from this column. Does anyone know how to do this?
Switch test =
SWITCH (
TRUE ();
analyseafhankelijkheid[mcw_categorie] = 100000000; IF ( [Max van groep] = [Naar]; 1; 2 );
analyseafhankelijkheid[mcw_categorie] = 100000001; IF ( [van] = [Naar]; 1; 2 );
analyseafhankelijkheid[mcw_categorie] = 100000002; IF ( [Naar] >= [Max van groep]; 1; 2 )
)
Solved! Go to Solution.
Hi @Anonymous
try this
Switch test = VAR _analyse = SELECTEDVALUE( analyseafhankelijkheid[mcw_categorie] ) RETURN SWITCH ( TRUE (); _analyse = 100000000; IF ( [Max van groep] = [Naar]; 1; 2 ); _analyse = 100000001; IF ( [van] = [Naar]; 1; 2 ); _analyse = 100000002; IF ( [Naar] >= [Max van groep]; 1; 2 ) )
What is the issue you are getting?
meausre =calculate(sum(Switch test ))
Hi @Anonymous
try this
Switch test = VAR _analyse = SELECTEDVALUE( analyseafhankelijkheid[mcw_categorie] ) RETURN SWITCH ( TRUE (); _analyse = 100000000; IF ( [Max van groep] = [Naar]; 1; 2 ); _analyse = 100000001; IF ( [van] = [Naar]; 1; 2 ); _analyse = 100000002; IF ( [Naar] >= [Max van groep]; 1; 2 ) )
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 |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |