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
rweb95
Frequent Visitor

Ayuda con la función RESUME

Hola. Tengo dos columnas 'RateSchedule - Current[UtilityName]' y 'RateSchedule - Current[CompanyId]'. Mi objetivo es tener una tabla visual en el informe que pueda filtrar las utilidades consideradas como "Custom". Si un [UtilityName] tiene un [CompanyId] que lo acompaña, entonces debe considerarse "Custom". Si [CompanyId] está en blanco, se considera "Global". Y si un [UtilityName] tiene ambos, entonces es "Global".

Ejemplo:

'RateSchedule - Current[UtilityName]' 'RateSchedule - Current[CompanyId]'

ANEC-VA 6721

------ ANEC-VA

ANEC-VA 10484

AEC 10733

AEC 8413

------ ACEC

------ ACEC

En este ejemplo, ANEC-VA debe ser "Global", AEC debe ser "Custom" y ACEC debe ser "Global".

Mi problema es averiguar cómo clasificar un [UtilityName] como "Global" cuando tiene varias filas que tienen espacios en blanco e IDs. Creo que RESUME es lo que necesito usar, pero no estoy completamente seguro.

¡Soy bastante nuevo en Power BI y aprecio cualquier ayuda que pueda proporcionar!

2 REPLIES 2
amitchandak
Super User
Super User

@rweb95 , Pruebe una nueva columna como

if(countx(filter(table, [UtilityName] ?earlier([UtilityName] ) && isblank([CompanyId])),[UtilityName])+0>-1,"Global", "Custom" )

Sí, ¡eso funcionó! ¡Gracias por tu ayuda!

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.