Why isnt this DAX formula working?

nmss18

Active Member
Joined
Jun 28, 2011
Messages
312
Hello,
I am trying to concatenate 2 colums and I cannot figure out why this seemingly simple task is not working.

I am using this formula:

=CONCATENATE(Dates[Day]& " - ", CONCATENATE('talmon 2012'[Time of Day]))

It is giving me the following error:
Too few arguments were passed to the CONCATENATE function. The minimum argument count for the function is 2.

Can anyone assist?
Much appreciated!
Nathan
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
The second Concatenate is not necessary.

Actually, neither of them are. I rarely use Concatenate because "&" will give you the same result and is easier to read in my opinion.

Try this:
='Dates'[Day] & " - " & 'talmon 2012'[Time of Day]
 
Upvote 0
Thanks for replying. I tried that and received this error:


The value for column 'Day' in table 'Dates' cannot be determined in the current context. Check that all columns referenced in the calculation expression exist, and that there are no circular dependencies.
 
Upvote 0
Sorry, I wasn't paying close attention. Since these columns are in 2 different tables, you need to add a RELATED(). I assume you are trying to create this field in 'talmon 2012' and there is already a relationship with 'Dates'.

=RELATED('Dates'[Day]) & " - " & 'talmon 2012'[Time of Day]

This should work. RELATED() pulls the field from the Lookup table into the main table.
 
Upvote 0

Forum statistics

Threads
1,223,937
Messages
6,175,510
Members
452,650
Latest member
Tinfish

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top