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.
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!
@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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |