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
Rygaard
Resolver I
Resolver I

utilizar CONCATENATEX para mostrar "todos" o los valores seleccionados, pero limitados por filtros groupe y por ingresos

OK - así que hice este pequeño messure que muestra los departamentos seleccionados y funciona muy bien ya sea mostrar "todos" o los departamentos seleccionados.

'Selected department = 
Var seldep=
CONCATENATEX(ALLSELECTED(Departments[D.No+D.Name]),Departments[D.No+D.Name],", ")
var IsItFiltered=
    IF (ISFILTERED(Departments[D.No+D.Name]),seldep,"ALL")
return
IsItFiltered

PERO sólo quería que mostrara los departamentos que tiene Ingresos en el período que seleccioné.

También sería bueno si no mostrara TODO si hice una selección en el filtro de regiones.

así que traté de envolverlo en un calcular con un filtro en el valor Entrada, debe ser mayor que 1 esto no funcionó... cualquier sugestions '?

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Nop. Esto tampoco funcionó para filtrar el valor de concat por la segmentación de datos.

Greg_Deckler
Super User
Super User

@Rygaard Es difícil de decir exactamente sin tener datos de origen y la salida esperada para probar. Parece que vas por un título dinámico, esto puede darte algunas ideas más:

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer...


@ 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...

@Greg_Deckler  - Great post, but id do not cover what im asking....

 

I have the following tables country, Region, Department, value entry, calender (and 20 others that dont matter for this)

 

So when i select  UK and US i dont want to see German departments

In the slicers its easy i just put a filter on revenue from the Value Entry - this way the slicer only show Departmetns in selected country(S)

But i cant put a filter on this messure that is dynamic non dynamic it work fine like :

 testResult23 =CALCULATE(CONCATENATEX(VALUES(Departments[D.No+D.Name]),Departments[D.No+D.Name],", "),FILTER(CountryTable,CountryTable[Contry_DW_Account] in {"UK", "US"}))

but if i try to replace the {"uk", "US"} with a variable it wont work.

 

or if i try to use  '

test = CALCULATE(CONCATENATEX(VALUES(Departments[D.No+D.Name]),Departments[D.No+D.Name],", "),SELECTEDVALUE(CountryTable[Country_DW_Account])) 

 

im sure ther is a way to do this I just have not found it yet

@Rygaard

Prueba éste:

test = CALCULATE(CONCATENATEX(VALUES(Departments[D.No+D.Name]),Departments[D.No+D.Name],", "),
FILTER(CountryTable,CountryTable[Contry_DW_Account] = SELECTEDVALUE(CountryTable[Country_DW_Account])))


Paul Zheng _ Equipo de apoyo de la comunidad
Si este post ayuda, por favor Acédárlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

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.