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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Syndicate_Admin
Administrator
Administrator

Agregue Clasificación en una tabla resumida, pero duplicada.

Hola.

Hice una tabla resumida con el siguiente dax. Sin embargo, hay algunas clasificaciones duplicadas incluso si los valores no son similares.

¿Me pueden ayudar a resolver el problema?

Clasificación - Región =

VAR _month = MES(HOY())
VAR _year = AÑO(HOY())
VAR _RefYear = SI(_month > 6, _year, _year - 1)

DEVOLUCIÓN
ADDCOLUMNS(
RESUMIR(
FILTRO(
'_SALES',
(AÑO('_SALES'[Fecha de transacción]) = _RefYear &&
RELACIONADO(_CUSTOMER[Código de división]) EN {"1", "2", "3"} &&
RELACIONADO(_GROUP[Código de grupo de productos]) = "A") &&
'_SALES' [USD] > 0
),
_CUSTOMER[Índice de la región],
"Ventas", SUMA('_SALES'[USD]),
"Año", _RefYear
),
"Rango de región",
RANKX(
RESUMIR(
FILTRO(
'_SALES',
(AÑO('_SALES'[Fecha de transacción]) = _RefYear &&
RELACIONADO(_CUSTOMER[Código de división]) EN {"1", "2", "3"} &&
RELACIONADO(_GROUP[Código de grupo de productos]) = "A") &&
'_SALES DATA'[USD] > 0
),
_CUSTOMER[Índice de la región],
"Ventas", SUMA('_SALES DATOS'[USD])
),
[Ventas],
,
DESC,
DENSO
)
)
El índice de región es un valor único en el texto.
Ejemplo de resultado,
Ranking del Índice de la Región Ventas
A 20 4541889.2
B 20 4681260.92
No creo que las regiones A y B sean la misma clasificación.
Por favor, ayúdame a resolver este problema.
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hola @Young_G_Han ,

Comparta datos de muestra en una unidad y pegue el enlace aquí para explorar más a fondo.

Bien

CheenuSing

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Muy señor mío.

La medida fue correcta para mí. Acabo de cometer un error.

Gracias.

Syndicate_Admin
Administrator
Administrator

Hola @Young_G_Han ,

Comparta datos de muestra en una unidad y pegue el enlace aquí para explorar más a fondo.

Bien

CheenuSing

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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