Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
I want to add sorting for the date to make sure it returns the milestone well ordered by date.
This is the Dax I used
MilestoneTable =
VAR GroupedData =
SUMMARIZE (
'Query3 (3)',
'Query3 (3)'[Product name],
"Milestones",
CONCATENATEX (
'Query3 (3)',
"[" &
"""" & FORMAT('Query3 (3)'[Date], "YYYY-MM-DD") & """," &
"""" & 'Query3 (3)'[Product name] & """," &
"""" & 'Query3 (3)'[Description] & """" &
"]",
","
)
)
RETURN
SELECTCOLUMNS (
ORDER BY( GroupedData, 'Query3 (3)'[Date], ASC ),
"Product name", 'Query3 (3)'[Product name],
"Milestones", IF(COUNTROWS(GroupedData) > 1, "[" & [Milestones] & "]", [Milestones])
)
But I keep getting this error:
The syntax for 'ORDER' is incorrect. (DAX(VAR GroupedData = SUMMARIZE ( 'Query3 (3)', 'Query3 (3)'[Product name], "Milestones", CONCATENATEX ( 'Query3 (3)', "[" & """" & FORMAT('Query3 (3)'[Date], "YYYY-MM-DD") & """," & """" & 'Query3 (3)'[Product name] & """," & """" & 'Query3 (3)'[Description] & """" & "]", "," ) )RETURN SELECTCOLUMNS ( ORDER BY( GroupedData, 'Query3 (3)'[Date], ASC ), "Product name", 'Query3 (3)'[Product name], "Milestones", IF(COUNTROWS(GroupedData) > 1, "[" & [Milestones] & "]", [Milestones]) ))).
Solved! Go to Solution.
Thank you, I figured out that ORDER BY is not a valid expression in calculated table. So I sorted the HTML content viewer using java script. It's fine now.
the correct syntax is
RETURN <something something>
ORDER BY <column>
Thank you, I figured out that ORDER BY is not a valid expression in calculated table. So I sorted the HTML content viewer using java script. It's fine now.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 9 | |
| 7 | |
| 5 |