Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hola a todos
Tengo 2 informes de P&L trabajando bien.
Trate de combinar 2 informes de P&L en 1.
Después de combinar ambos en 1, obteré un error.
Ahora necesito entender lo que está haciendo el siguiente código :-
Solved! Go to Solution.
Es difícil ver dónde está el problema. Sin embargo, JFYI, No es necesario filtrar DISTINCT sin espacios en blanco; DISTINCT devuelve una tabla de valores únicos excluyendo blanks..
Gracias por compartir.
A continuación se muestra mi sintaxis orginal :-
_PNL_Table =
T_REV VAR =
FILTRO ( DISTINTO ( GL[1_REV] ), NO ( ISBLANK ( GL[1_REV] ) ) )
VAR t_cogs =
FILTRO ( DISTINTO ( GL[1_COGS] ), NO ( ISBLANK ( GL[1_COGS] ) ) )
T_OTH VAR =
FILTRO ( DISTINTO ( GL[1_OTH] ), NO ( ISBLANK ( GL[1_OTH] ) ) )
T_EXP VAR =
FILTRO ( DISTINTO ( GL[1_EXP] ), NO ( ISBLANK ( GL[1_EXP] ) ) ) )
T_REV_COGS VAR =
UNION ( t_rev, t_cogs, t_oth, t_exp )
VAR tbl = {(t_rev, 1), (t_cogs, 2), (t_oth, 3) , (t_exp, 4)}
devolución
Tbl
A continuación la sintaxis es donde elimino filtro En blanco :-
_PNL_Table =
T_REV VAR =
FILTRO ( DISTINCT ( GL[1_REV] ))
VAR t_cogs =
FILTRO ( DISTINCT ( GL[1_COGS] ))
T_OTH VAR =
FILTRO ( DISTINCT ( GL[1_OTH] ))
T_EXP VAR =
FILTRO ( DISTINCT ( GL[1_EXP] ))
T_REV_COGS VAR =
UNION ( t_rev, t_cogs, t_oth, t_exp )
VAR tbl = {(t_rev, 1), (t_cogs, 2), (t_oth, 3) , (t_exp, 4)}
devolución
Tbl
Obtego error msg :-
Mi archivo PBI :-
https://www.dropbox.com/s/jt7drogywitrrg5/PBS%20GL%20ASK%20HOW%20TO%20REMOVE%20BLANK_.pbix?dl=0
Paul
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.