Forum Discussion
need help with semantic link syntax
Hi Jeanxyz
Following up to check whether you got a chance to review the suggestions given. If the issue still persists please let us know. Glad to help.
If our response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.
TRhank you.
My goal is to understand why the summarizecolumn query failed. Hence it's not really solved yet.
- v-sgandrathi1 year ago
Community Support
Hi Jeanxyz,
Thank you for using Microsoft Community Forum.
The reason your SUMMARIZECOLUMNS query is failing is due to how DAX processes calculated fields within that function.
When you define "Duration" as a calculated field using the measure [Phase Duration(M)], DAX doesn't recognize it properly. Instead of evaluating it as a measure, it treats it as a generic object (System.Object), which is unsupported by SUMMARIZECOLUMNS.
SUMMARIZECOLUMNS only works with existing columns and measures. If you try to create a calculated column on the fly, DAX fails to resolve it correctly.
To make this work, you need to wrap the measure calculation in a CALCULATE() function to ensure it's evaluated properly within the row context.
If this suggestion helped you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!
Thank you.- v-sgandrathi1 year ago
Community Support
Hi Jeanxyz,
I wanted to check in your situation regarding the issue. Have you resolved it? If you have, please consider marking the reply as Accepted solution and give Kudos that helped you. It would be greatly appreciated by others in the community who may have the same question.
Thank you.- v-sgandrathi1 year ago
Community Support
Hi Jeanxyz,
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved. If our response addressed by the community member for your query, please mark it as Accept Answer and click Yes if you found it helpful.Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!
- Jeanxyz1 year ago
Power Participant
Thanks for the explanation. I tried your advice, and write the query as below
******************
%%dax "CRM - Financial Report UAT 2025"EvaluateSummarizecolummns("Sales Phase[Sales Phase]","duration", 'calculate(MEDIAN(Sales_Phase_Log[Phase Duration]))')**************************This time I got a different error message: An error occurred when running AdomdCommand. AdomdCommandActivityId: '2ed55e13-8d70-4680-a74e-e7c50226da96' Caused by AdomdErrorResponseException: Query (4, 17) Cannot find table '<oii>calculate(MEDIAN(Sales_Phase_Log[Phase Duration]))</oii>'.- v-sgandrathi1 year ago
Community Support
Hi Jeanxyz,
Try this Dax Measure:
Evaluate
SUMMARIZECOLUMNS(
'Sales Phase'[Sales Phase],
"duration", [Phase Duration(M)]
)
Ensure [Phase Duration(M)] is already a valid measure.Phase Duration(M) = MEDIAN(Sales_Phase_Log[Phase Duration])
SUMMARIZECOLUMNS only allows measures and existing columns, not calculated expressions directly.
If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!
Thank you.