Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
In a cash flow report I need to show the dailly postition of the cash accounts; it's basically a runing total of all transactions.
No particular problem with that, I use this mesaure to calculate the running total :
running total =
CALCULATE( Sum(GL_ENTRY[Amount]),
BUT I have a severe performance issue. The Min and max value only appear after few minutes and when filters limit the number of transactions. Otherwise I got an error message.
There are 18 Million records in my fact table GL_ENTRY.
Is there a more efficient way to show the Min and the Max monthly value ?
Thanks
I'm thinking of a the combination of a Minx with Summarize function by DAY / COMPANY / ACCOUNT / Running Total
Can it works?
Hi @Samkar78 summarize is always good option, just try it intcomporate into variable as table and after that iterate this temporary table to get result (I guess measure)
Proud to be a Super User!
I think I'm not far from the solution. My summarize table is only 37 K lines vs the 18 M lines of the fact table.
But I have trouble to combine the Minx with the Summarize function
This code works but not If I want to show the Min monthly value on a chart with a daily scale
KO
Hi @Samkar78 again try with variable
Proud to be a Super User!
Unfortunately it doesn't make a significant difference to use a variable in the min monthly position 🙁
Hi @Samkar78 I suggest to analyze it in "isolated scenario" meaning that you remove any other visuals in canvas / report and check timing, this way you figure out how other visuals affect your specific one. In addition, use DAX Studio to trace performance and accordingly eventually adjust code.
Another, complex maybe approach would be to "move" amounts to Calendar / Date Table if it suits your need. This way as probably your Date / Calendar table is much much lowe concerning cardinality than your Fact table. Think about it.🙂
Hope this help
Proud to be a Super User!
HI @Samkar78 try with variable for max date
running total =
VAR _max_date=MAX(CALENDAR[DAY])
CALCULATE( Sum(GL_ENTRY[Amount]),
CALENDAR[DAY] <= _max_date,
ALL(CALENDAR[DAY])
)
Did I answer your question? Mark my post as a solution! Kudos Appreciated!
Proud to be a Super User!
Much better indeed ! I don't have error message anymore.
But the line chart is still a bit long to show up (arround 50 sec).
Any advice to tune the Min and Max measures ?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
26 | |
21 | |
11 | |
8 |
User | Count |
---|---|
77 | |
50 | |
46 | |
16 | |
12 |