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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
HelpNeeded21
Frequent Visitor

Multiplicar columna con valores diferentes en otra tabla

Hola a todos, necesito ayuda, el caso es el siguiente:

Tengo una tabla con muchas transacciones (ventas facturadas, cantidades, números de pieza) y tengo otra tabla con el precio de la lista blanca por país (el "precio de lista blanca" incluye todos los precios sin descuentos), así que me gustaría agregar una nueva columna con las ventas facturadas con el "precio de lista blanca" según los países.

Espero que alguien pueda ayudarme.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HelpNeeded21

Puede tener nuevas columnas como

white list price = Minx(filter('white list price','white list price'[country] ='transactions '[country] ),'white list price'[price])
or
white list price = Minx(filter('white list price','white list price'[country] ='transactions '[country] && 'white list price'[item] ='transactions '[item]),'white list price'[price])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@HelpNeeded21

Puede tener nuevas columnas como

white list price = Minx(filter('white list price','white list price'[country] ='transactions '[country] ),'white list price'[price])
or
white list price = Minx(filter('white list price','white list price'[country] ='transactions '[country] && 'white list price'[item] ='transactions '[item]),'white list price'[price])

Greg_Deckler
Super User
Super User

Por lo tanto, los datos de muestra serían tremendamente útiles. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Suponiendo que tenga una columna País en su primera tabla, podría hacer algo como esto:

Column =
  VAR __Country = 'Table'[Country]
  VAR __WhiteListPrice = 
    LOOKUPVALUE(
      'White List Price Table',
      'White List Price Table'[White List Price],
      'White List Price Table'[Country],
      __Country
    )
REUTRN
  __WhiteListPrice


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.