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
MrGlenn
Helper I
Helper I

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
MrGlenn
Helper I
Helper I

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.






Hello,

Thanks for your input.

 

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

MrGlenn_0-1662871889134.png

 

VijayP
Super User
Super User

@MrGlenn 

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!


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
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.