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.
Hola Gurús de Power BI,
Haciendo referencia a la siguiente imagen estoy buscando una fórmula DAX para crear una columna que dé el resultado "Convertido") si hay dos valores específicos "1.2 Design Checking" & 13.1 Inspección asociada con Project ID, por ejemplo, project id 103176 tiene Design Certification & Inspection Por favor ayúdame a crear eso?
Solved! Go to Solution.
Puede probar la siguiente medida:
test =
VAR test3 =
IF (
CALCULATE (
COUNT ( 'Sample'[Project ID] ),
FILTER (
ALL ( 'Sample' ),
'Sample'[Fee Name] = "13.1 Inspection"
&& 'Sample'[Project ID] = MAX ( 'Sample'[Project ID] )
)
) >= 1,
1,
0
)
VAR test2 =
IF (
CALCULATE (
COUNT ( 'Sample'[Project ID] ),
FILTER (
ALL ( 'Sample' ),
'Sample'[Fee Name] = "1.2 Design Checking"
&& 'Sample'[Project ID] = MAX ( 'Sample'[Project ID] )
)
) >= 1,
1,
0
)
RETURN
IF (
test2 = 1
&& test3 = 1,
"1.2 Design Checking&&13.1 Inspection",
MAX ( 'Sample'[Fee Name] )
)
Final obtendrá lo siguiente:
Puede probar la siguiente medida:
test =
VAR test3 =
IF (
CALCULATE (
COUNT ( 'Sample'[Project ID] ),
FILTER (
ALL ( 'Sample' ),
'Sample'[Fee Name] = "13.1 Inspection"
&& 'Sample'[Project ID] = MAX ( 'Sample'[Project ID] )
)
) >= 1,
1,
0
)
VAR test2 =
IF (
CALCULATE (
COUNT ( 'Sample'[Project ID] ),
FILTER (
ALL ( 'Sample' ),
'Sample'[Fee Name] = "1.2 Design Checking"
&& 'Sample'[Project ID] = MAX ( 'Sample'[Project ID] )
)
) >= 1,
1,
0
)
RETURN
IF (
test2 = 1
&& test3 = 1,
"1.2 Design Checking&&13.1 Inspection",
MAX ( 'Sample'[Fee Name] )
)
Final obtendrá lo siguiente:
@ramhariessentia , Basado en lo que tengo, Pruebe una nueva columna como
if( calculate(distinctCOUNT([Fee Name]), filter(Table, [projectID] =earlier([projectID]) && [Fee Name] en {"1.2 Design Checking" , "13.1 Inspection (L1)"}))+0 =2, 1,0)
Estoy recibiendo el siguiente error de sintaxis
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 |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |