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.
Hello, I'm wondering if someone can help me tune this measure below. It is causing my chart to return the error message in the title.
It's returning the exact result I need, but on my desktop app the charts are very slow to load, and in the online service they will simply not load.
Help is greatly appreciated.
Solved! Go to Solution.
I believe I've made some progress, it's slightly faster, though still not ideal.
I believe I've made some progress, it's slightly faster, though still not ideal.
Hi @patri0t82 ,
Try:
Prev60Months =
CALCULATE(
SUM('MTBF - Combined'[Failure]) ,FILTER('MTBF-Combined',YEAR('MTBF-Combined'[Date])>=YEAR(MAX('CalendarTable'[Date]))-5 && YEAR('MTBF-Combined'[Date])<=YEAR(MAX('CalendarTable'[Date]))))
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Thank you for the reply, I appreciate you taking the time to work out the measure. It, however, wasn't performing exactly as desired.
I added it as a column in my table visual on the far right as you'll see in the image below:
The result showing is 22, which is the total number of failures only for that month. It should be showing the total for the previous 5 years. (which should be 4485 I believe (calculated at the month level))
Anyway, unless there's something simple standing out, I really appreciate your response and think the solution I have in place is working fine.
Hi @patri0t82 ,
If possible,could you pls share your .pbix file for test?
Remember to remove confidential information.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
I really appreciate your help, and I think the solution I have from above will continue to work well. It would be too much work anyway to replace with dummy data. Thank you for your support.
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |