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
rkumar
Helper III
Helper III

A table of multiple values was supplied where a single value was expected.

Hi All,

 

I am getting the mentioned error while working with date columns . 
To find latest updated date depending on different departments. 
Tried using lastdate for find the same bit it gives the same error. is there any way or workaround to fix this.

 

Thank you 

3 ACCEPTED SOLUTIONS
v-yuezhe-msft
Employee
Employee

@rkumar,

A simple example for your reference. Right click your table, select "New Measure", then apply the following DAX.

Latest date=LASTDATE(Table[Date])
1.JPG2.JPG

Regards,
Lydia

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

View solution in original post

LASTDATE formulae is working fine when tested with some dummy data . It seems there is some other issue that we need to find in the data.

View solution in original post

@rkumar,

How is the issue going? If you have solved the issue, please accept appropriate reply as answer to close this thread.

Regards,
Lydia

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

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@rkumar,

A simple example for your reference. Right click your table, select "New Measure", then apply the following DAX.

Latest date=LASTDATE(Table[Date])
1.JPG2.JPG

Regards,
Lydia

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

LASTDATE formulae is working fine when tested with some dummy data . It seems there is some other issue that we need to find in the data.

@rkumar,

How is the issue going? If you have solved the issue, please accept appropriate reply as answer to close this thread.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Can you post your formula and maybe some sample/fake data?


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...

Hi Smoupre,
Thanks for the reply . LASTDATE formulae is working fine when tested with some dummy data . It seems there is some other issue that we need to find in the data. will work on same and if there are any further queries ,will revert you on the same .

Thankyou

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.