Reply
mazwro
Helper II
Helper II
Partially syndicated - Outbound

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

I am reading though support and cannot see a save for my issue. Can someone help what it means please?

 

I am trying to create a date selector table, unlinked to other tables and it looks as below. The error I am getting is this:

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

 

Date Aggregation parameters measure = {
    ("WEEK", NAMEOF('date selector'[WeekRange]), 0),
    ("MONTH", NAMEOF('date selector'[MonthRange]), 1),
    ("QUARTER", NAMEOF('date selector'[QuarterRange]), 2)
}

 

 the table i s a standard date table :

mazwro_0-1718887466797.png

 

1 ACCEPTED SOLUTION

Syndicated - Outbound

Hi @mazwro ,

 

It seems that you want to add a new field to the field parameter, and the easiest way to do this is to delete it and then recreate it.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

4 REPLIES 4
AntrikshSharma
Super User
Super User

Syndicated - Outbound

@mazwro You might be in the context of a measure? Show an image of the table where it throws the error.

 

"I am truing to create a date selector table" but in your DAX you're using 'date selector' what's up with that?

Syndicated - Outbound

Thanks for the answer.

I want to create a slicer, or an aggregation selector which aggregates my date by week, month or a quarter, like below:.
In an example I am using this slicer is create like so:

Date Aggregation parameters = {
    ("DAY", NAMEOF('Date table'[DateFormatted]), 0),
    ("WEEK", NAMEOF('Date table'[WeekRange1]), 1),
    ("MONTH", NAMEOF('Date table'[MonthYearFormatted]), 2)
}

I am rewriting it to get a quarter as well. It is a new column, not a measure

mazwro_0-1718891148881.png


In the screenshot following, I am trying to create the same aggregator in both tables: one is a blank one, one is a normal date table

mazwro_1-1718891341844.png

 

Syndicated - Outbound

Hi @mazwro ,

 

It seems that you want to add a new field to the field parameter, and the easiest way to do this is to delete it and then recreate it.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Syndicated - Outbound

@mazwro you're creating a calculated column and not a calculated table.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)