Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Charu
Post Patron
Post Patron

Cómo mostrar todos los valores basados en Si condición en el escritorio power bi

Querida Comunión,

Estoy tratando de mostrar todos los valores que satisfacen la condición, pero sólo podía ver un solo valor.

Por favor, ayúdame con la fórmula DAX.

A continuación se muestra la fórmula que he probado, pero está mostrando todos los valores que no funcionan en función de la condición

Medida ?
VAR NOTETXT á IF('table'[Variance %] > 0,CONCATENATEX(('table'),'table'[Category],"AND"))
Pretexto VAR " Following Category ' "
VAR postcat " "objetivo alcanzado"

DEVOLUCION Pretexto & NOTETXT & postcat
A continuación se devuelve un solo valor
_vm objetivo de la página de correo de la página de
VAR NOTETXT á IF('table'[Variance %] > 0,'table'[Category])
Pretexto VAR " Following Category ' "
VAR postcat " "objetivo alcanzado"

DEVOLUCION Pretexto & NOTETXT & postcat
A continuación se muestran los datos de muestra
Categoría de variación%
-6,5% CategoríaA
-5,3% Categoría B
9.3% CategoríaC
7.3% Categoría
El resultado previsto es: Siguiendo la Categoría 'CategoríaC Y Categoría', objetivo alcanzado
1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hola @Charu ,

El filtro de tabla debe configurarse como"Tabla"[Variance%]>0"como la siguiente medida.

Measure =
VAR NOTETXT =
    CONCATENATEX (
        FILTER ( 'Table', 'Table'[Variance%] > 0 ),
        'table'[Category],
        " AND "
    )
VAR pretext = " Following Category ' "
VAR postcat = " 'achieved target"
RETURN
    pretext & NOTETXT & postcat

Aquí está el resultado.

1-1.PNG

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hola @Charu ,

El filtro de tabla debe configurarse como"Tabla"[Variance%]>0"como la siguiente medida.

Measure =
VAR NOTETXT =
    CONCATENATEX (
        FILTER ( 'Table', 'Table'[Variance%] > 0 ),
        'table'[Category],
        " AND "
    )
VAR pretext = " Following Category ' "
VAR postcat = " 'achieved target"
RETURN
    pretext & NOTETXT & postcat

Aquí está el resultado.

1-1.PNG

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hola @v-eachen-msft,

Muchas gracias su solución funcionó bien. Gracias una vez más por esta oportuna ayuda 🙂

Greg_Deckler
Community Champion
Community Champion

Difícil saber lo que está pasando, datos de muestra y el resultado esperado ayudaría. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hola @Greg_Deckler

Edité mi publicación con datos de muestra y el resultado esperado. Espero que esto tenga sentido. Por favor, ayúdame a lograr el resultado esperado.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.