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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Cálculo de sumas

La tabla es

-----------------------------------------

Precio del producto de City Store

Toronto A TV1 500

Toronto B TV2 550

Portátil Ottawa C1.600

Portátil Ottawa D2.650

---------------------------------------------------

Quiero mostrar como

La tabla es

-----------------------------------------------------------

Relación de precios de productos de City Store

Toronto A TV1 500 500/1050

Toronto B TV2 550 550/1050

Portátil Ottawa C1 600 600/1250

Ottawa D Portátil2 650 650/1250

---------------------------------------------------

¿Cómo crear una nueva medida para mostrar la imagen de arriba?

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@rsbin , Gracias por su ayuda.

 ALLEXCEPT(YourTable, YourTable[City] )

significa que solo use el filtro de la ciudad.

Tengo otra pregunta. Si mi tabla tiene una fecha de columna. Los datos anteriores son date=today. Tenemos unos días. ¿Cómo obtener 1050, 1250?

Syndicate_Admin
Administrator
Administrator

@fdavef ,

Puede crear 2 columnas calculadas:

TotalPrice = CALCULATE( SUM( [Price] ),
                ALLEXCEPT(YourTable, YourTable[City] ))

Ratio = [Price] & "/" & [TotalPrice]

rsbin_0-1698089853722.png

Espero que esto sea lo que estás buscando.

Saludos

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors
Top Kudoed Authors