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

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.

Reply
jmarcrum
Helper II
Helper II

Usar medida como segmentación

Hola a todos -

Estoy intentando usar los valores de texto de una medida en una segmentación de datos en mi objeto visual de tabla. Creé una tabla separada llamada "Categoría" que contiene los valores de texto posibles de la medida y soy capaz de filtrar el objeto visual uno a la vez usando la siguiente fórmula en mi filtro de nivel visual:

Selección de categorías: IF(SELECTEDVALUE(Category[Value]))[Category Measure],1,0)

¿Hay alguna manera de filtrar en varios valores?

Vea las capturas de pantalla a continuación con mis pasos.

¡Gracias de antemano!

Visual de la mesa

9_a.pngtabla visual

medir la segmentación

9_b.pngmedir la segmentación

filtrar en un solo valor

9_c.pngfiltrar en un solo valor

filtrar en múltiples valores

9_d.pngfiltrar en múltiples valores

5 REPLIES 5
v-lid-msft
Community Support
Community Support

Hola @jmarcrum ,

Podemos cambiar la medida de la siguiente manera para cumplir con sus requisitos:

Category Selection =
IF ( [Category Measure] IN DISTINCT ( Category[Value] ), 1, 0 )


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

¿cuál es el cálculo de la medida de categoría?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Medición de la categoría ?
IF(ISBLANK(CBM_ROUTES_2[X_DELTA]), "no hay suficientes datos",
IF([X_MAX_BW_X_FOR]<[X_AVG_DAYS_BTW_MEASUREMENTS],"No se realiza con suficiente frecuencia",
IF([X_MIN_BW_X_FOR]>[X_AVG_DAYS_BTW_MEASUREMENTS],"Realizado con demasiada frecuencia","OK (dentro del ancho de banda)")))

Greg_Deckler
Super User
Super User

Muchas veces puedes hacer algo como:

VAR __Selections á 'Slicer'[Categorías]

A continuación, puede hacer un filtro como:

FILTRO('Tabla',[Columna] EN __Selections)


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler could you give a more specific explanation? tnahk you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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