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
SrinuReddy
New Member

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

when Im Created dax new Column Like

 

Date= calendar(date(2013,1,1),date(2016,12,31)

 

im getting error like

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

1 ACCEPTED SOLUTION

HI @SrinuReddy,

 

Calendar function can't direct use in calculate column, you need to do some summary for result table to summary result.

Sample:

Date =
COUNTROWS ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )

Date = MAX ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )

Date = MIN ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )


Can you share some sample data with expected result to help us clear your requirement?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@SrinuReddy,

CALENDAR returns a table so you have to use New Table instead of New Column

@Anonymous

 

but i want do DAX calculation On Existed Table..

HI @SrinuReddy,

 

Calendar function can't direct use in calculate column, you need to do some summary for result table to summary result.

Sample:

Date =
COUNTROWS ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )

Date = MAX ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )

Date = MIN ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )


Can you share some sample data with expected result to help us clear your requirement?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.