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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mafioso
Helper II
Helper II

Show just Month and Year of Date in Query Editor

Capture.PNG

 

I want to show just "March 2018" or something like "03/2018". How can I solve that issue in the Query Editor?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey @mafioso,

 

To expand on what @Anonymous said, I would create a calculated column like:

 

Column = COMBINEVALUES("/", MONTH(Table[Date]), YEAR(Table[Date]))

This concatenates the month and year values of the date, separated by a "/"

 

Hope this helps,

Parker

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hey @mafioso,

 

To expand on what @Anonymous said, I would create a calculated column like:

 

Column = COMBINEVALUES("/", MONTH(Table[Date]), YEAR(Table[Date]))

This concatenates the month and year values of the date, separated by a "/"

 

Hope this helps,

Parker

Anonymous
Not applicable

@Anonymous that will work, but he says need it on the Edit Query

Anonymous
Not applicable

@Anonymous right, I missed that

Thanks I didn't know that it's much easier using a calculated column. 

Anonymous
Not applicable

@mafioso I would recommend you to split all the values and using the "." as a delimiter, once they're separated you must create a custom colum concatenation in the right order all the values, and then changed the format.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.