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 all,
I am trying to get a measure working to get information about the average cumulative duration of sorted data.
The following two tables are used:
Log:
Cases:
Expected result in a matrix:
This works fine with the following when DurationAtStart is the following measure until I work with a big dataset:
DurationAtStart =
VAR auxT_ =
ADDCOLUMNS (
Log,
"ValueSum_",
CALCULATE (
SUM ( Log[duration] ),
Log[event_number] <= EARLIER ( Log[event_number] ) - 1,
ALLEXCEPT ( Log, Log[id] )
)
)
RETURN
AVERAGEX ( auxT_, [ValueSum_] )Do you any tips on how I can change the measure so everything works faster? Right now on a bigger dataset it stops calculating because the memory limit will get reached. I don't want to pre calculate everything unless it really is the last option.
Thank you for your help!
Lucmax
You can refer to this blog:
https://maqsoftware.com/expertise/powerbi/dax-best-practices
Please provide sample data in usable format (not as a picture).
Have you considered using DAX Studio to evaluate the performance of your measure query?
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 |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |