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.
Hello everybody
I come here so that you can help me, please.
I want to create a measure using strings columns as a conditions, and this turn me a result a string value from other string column.
You can see this picture below.
I hope you can help me soon.
Regards.
Solved! Go to Solution.
Hi @rmcneish ,
Try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
M1 =
IF (
MAX ( ZQM_CNTL_P_DIARI[OPERACION] ) = "INSPECCIÓN CALIDAD"
&& MAX ( ZQM_CNTL_P_DIARI[CARACTERISTICA] ) = "CALIDAD ESTIMADA PLANTA",
MAX ( ZQM_CNTL_P_DIARI[VALOR_TXT] )
)
And if the string you are looking for, is a subset of the string, and you only want "CALIDAD ESTIMADA" then use this.
M1 =
IF (
MAX ( ZQM_CNTL_P_DIARI[OPERACION] ) = "INSPECCIÓN CALIDAD"
&& CONTAINSSTRING ( MAX ( ZQM_CNTL_P_DIARI[CARACTERISTICA] ), "CALIDAD ESTIMADA" ),
MAX ( ZQM_CNTL_P_DIARI[VALOR_TXT] )
)
Proud to be a Super User!
Hi @rmcneish ,
Try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
M1 =
IF (
MAX ( ZQM_CNTL_P_DIARI[OPERACION] ) = "INSPECCIÓN CALIDAD"
&& MAX ( ZQM_CNTL_P_DIARI[CARACTERISTICA] ) = "CALIDAD ESTIMADA PLANTA",
MAX ( ZQM_CNTL_P_DIARI[VALOR_TXT] )
)
And if the string you are looking for, is a subset of the string, and you only want "CALIDAD ESTIMADA" then use this.
M1 =
IF (
MAX ( ZQM_CNTL_P_DIARI[OPERACION] ) = "INSPECCIÓN CALIDAD"
&& CONTAINSSTRING ( MAX ( ZQM_CNTL_P_DIARI[CARACTERISTICA] ), "CALIDAD ESTIMADA" ),
MAX ( ZQM_CNTL_P_DIARI[VALOR_TXT] )
)
Proud to be a Super User!
Hi @rmcneish ,
Please try to create a measure as below.
String measure =
VAR a =
VALUES ( table2[INSPECCION CALIDAD] )
VAR b =
VALUES ( table2[CALIDAD ESTIMADA] )
RETURN
CALCULATE (
MAX ( table[VALOR TXT] ),
FILTER ( table, table[OPERACION] IN a && table[CARATERISTICA] IN b )
)
If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
Hi @v-frfei-msft, first many thanks for aks me.
I tried to do but It doesn't work yet, basically i need the measure gives me a texts as a result.
Here you can find my data.
https://1drv.ms/u/s!Aq7YSdznILZYjyytI9VXF6NEoMdH?e=VTtAKe
I hope to read you soon.
Regards.
@Anonymous Thanks for have answered my problem.
I need to create a "measure" (not table, I am using a matrix chart) with only these condicions, actually I have many measures and just need this string measure.
I hope that you could help me.
Regards.
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |