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

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.

Reply
Anonymous
Not applicable

Máximo de una columna basada en otras dos columnas extraídas en una nueva columna

Quiero encontrar el máximo de la "Venta"columna basada en el máximo "ReadingDate" para cada categoría de producto extraída a una nueva columna llamada "MaxSold" . Por favor, me gustaría usar DAX para esto. Por ejemplo, Beans se extraería tan 9 como el máximo basado en el campo de fecha y hora. Muchas gracias.

ReadingDatePrroductVendido
7/1/2020 : 7:37:44 PMFrijoles1
7/1/2020 : 7:45:29 AMFrijoles0
7/3/2020 : 7:37:44 PMArroz0
7/1/2020 : 5:37:44 AMFruta3
7/16/2020 : 7:37:44 AMArroz0
7/5/2020 : 10:00:44 AMÑame4
7/16/2020 : 04:37:44 PMÑame5
7/8/2020 : 11:37:14 PMFruta3
7/1/2020 : 5:37:13 AMÑame1
7/15/2020 : 7:37:44 PMFruta0
7/4/2020 : 2:02:12 PMFrijoles1
7/5/2020 : 7:37:44 AMFrijoles0
7/5/2020 : 7:37:44 PMArroz2
7/10/2020 : 5:27:09 PMFrijoles9
7/16/2020 : 7:37:44 PMArroz0
7/16/2020 : 6:20:11AMArroz3
7/17/2020 : 7:37:44 PMArroz4
7/16/2020 : 12:37:44 PMFruta8
7/16/2020 : 9:37:40 AMFruta9
3 REPLIES 3
amitchandak
Super User
Super User

@Omonmaxi , Probar

lastnonblankvalue(Table[Date],max(Table([Sold])))
O
lastnonblankvalue(Table[Date],sum(Table([Sold])))

Refiera este blog : https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak

Anonymous
Not applicable

GRACIAS MUCHO, funcionó como un encanto 😁.

Greg_Deckler
Super User
Super User

@Omonmaxi - Parece que quieres Buscar Min/Max - https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434


@ 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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