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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Mann
Resolver III
Resolver III

SUMMARIZECOLUMNS with a formatting changed

Hi Guys,

 

I created a simple query to give me list of dates available in Date column in one of my AAS table. I used "Order By" to sort it and used this query result in Power BI paginated report as follows:

EVALUATE 
SUMMARIZECOLUMNS('Table1'[Date])
		ORDER BY 'Table1'[Date] DESC

I am getting results in "MM/DD/YYYY hh:mm tt"

 

I need to get results in "MM/DD/YYYY" format.

 

How can I change the above query to give me results in "MM/DD/YYYY" format with Summarizecolumns.

 

Thanks

1 ACCEPTED SOLUTION

I achieved this in the query by this:

 

 

EVALUATE
VAR _TempTable= SUMMARIZECOLUMNS ( 'Table1'[Date] )
Return
SELECTCOLUMNS(_TempTable,"Date",FORMAT([Date], "DD MMM YYYY"))
order by [Date] desc

 

View solution in original post

4 REPLIES 4
jenny1976
New Member

Thank you so much for posting this. It solved my issue as well. It was driving me mad. 🙂 Have a great day!

jdbuchanan71
Super User
Super User

@Mann 

You should just be able to change the formatting on the column of your new table in the model and it will appear correctly wherever it gets used.

@jdbuchanan71 

I tried chnaging the formatting of this column to "MM/DD/YYYY" in AAS but when this query is used as a dataset in Power BI Paginated report it shows "MM/DD/YYYY hh:mm tt"

 

So I am thinking of changing the query in a way to give me "MM/DD/YYYY" only.

 

Thanks

I achieved this in the query by this:

 

 

EVALUATE
VAR _TempTable= SUMMARIZECOLUMNS ( 'Table1'[Date] )
Return
SELECTCOLUMNS(_TempTable,"Date",FORMAT([Date], "DD MMM YYYY"))
order by [Date] desc

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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