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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors