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

bring text with max column condition data, but returns "erro a table of multiple values"

Hi there!

 

Someone can help me?

 

I  need bring a text value with condition max data, but into table, contains many duplicate values...

 

I try this function below:

 

LastSituation =
VAR Latest_Time_ =
CALCULATE (
MAX ( HISTORICO_COTAS[DATA_SITUACAO] );
FILTER ( ALL ( HISTORICO_COTAS[ID_COTA] ); HISTORICO_COTAS[ID_COTA] = VENDAS[ID_COTA] )
)
RETURN
LOOKUPVALUE (
HISTORICO_COTAS[CD_SITUACAO_COBRANCA];
HISTORICO_COTAS[ID_COTA]; VENDAS[ID_COTA];
HISTORICO_COTAS[DATA_SITUACAO]; Latest_Time_
)
 
message error: A table of multiple  values was supplied where a single value was expected.
 
 
Thank you in advance!
3 REPLIES 3
Greg_Deckler
Super User
Super User

Is that a measure or a column?  Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ 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...
Anonymous
Not applicable

Hello @Greg_Deckler 

 

I prefer column, but if any measure helps, i acept too hahah

Hi @Anonymous ,

More details will be much better.

If it is convenient, could you share the data sample which could reproduce the scenario and your desired output so that we could help further on it?

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.