Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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] DESCI 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
Solved! Go to 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
Thank you so much for posting this. It solved my issue as well. It was driving me mad. 🙂 Have a great day!
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.
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |