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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Create Table 1 row multiple columns

Hello,

 

How do you create a table with 1 row and multiple columns with data?

 

I am trying to get this into a table
EOMONTH(DATE (YEAR(TODAY()), MONTH(TODAY()), 1 ), -1)
EOMONTH(DATE (YEAR(TODAY()), MONTH(TODAY()), 1),-2)

I've had a go at using the DATATABLE function, had no success.

1 ACCEPTED SOLUTION

This works:

new table =
{
( EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), -1 ), EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), -2 ) )
}

eomonth.png

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

6 REPLIES 6
Anonymous
Not applicable

This is the error I get when using the DATA Table Function.

MrGlenn_0-1662872908147.png

 

PaulDBrown
Community Champion
Community Champion

Try

{(EOMONTH(DATE (YEAR(TODAY()), MONTH(TODAY()), 1 ), -1),
EOMONTH(DATE (YEAR(TODAY()), MONTH(TODAY()), 1),-2)}





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hello,

Thanks for your input.

 

I have tried this also, which gave me this error.

MrGlenn_0-1662871889134.png

 

VijayP
Super User
Super User

@Anonymous 

Quesion is bit unclear! Can you share a snapshot how you want to see the data!

Matrix table should help you right?!!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Hello,
This is what I want to see if the date is 11 September 2022.

MrGlenn_1-1662872398125.png

 

This works:

new table =
{
( EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), -1 ), EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), -2 ) )
}

eomonth.png

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.