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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kamini
Helper III
Helper III

Creation of a Data Table and getting an error.

Hi,😀

I'm trying to create a data table and getting the following error,

DateTable = 
ADDCOLUMNS (
    CALENDAR (MIN('ITD Projects'[Created date]), MAX('ITD Projects'[Finish date])),
    "Year", YEAR([Date]),
    "Quarter", "Q" & FORMAT(QUARTER([Date]), "0")
)

The expression refers to multiple columns. Multiple Coumns cannot be converted to a scalar value. 

I have changed both Created date and Finish date to date types. 

Please help.

Thanks,

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @kamini

Based on the error message, are you possibly trying to create a measure rather than a table?

The DAX expression itself looks fine for a calculated table.

Try selecting Modeling > New table and entering the expression. Does that work?

OwenAuger_0-1747261935833.png

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @kamini

Based on the error message, are you possibly trying to create a measure rather than a table?

The DAX expression itself looks fine for a calculated table.

Try selecting Modeling > New table and entering the expression. Does that work?

OwenAuger_0-1747261935833.png

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors