Forum Discussion
Formula not display correct result
- 7 years ago
Hey,
I'm not sure, what kind of error you try to catch, AVERAGE(..., ...) returns BLANK() if the application of the filter from the CALCULATE filter out all rows in the current FILTER context.Maybe you should give ISBLANK() a try like so:
var thevalue = CALCULATE(<your CALCULATE(...)>) return IF(ISBLANK(thevalue), 0, thevalue)
If this does not help, maybe you can provide a pbix file with some sample data, upload the pbix to onedrive or dropbox and share the link.
Regards,
Tom
Hey,
I'm not sure, what kind of error you try to catch, AVERAGE(..., ...) returns BLANK() if the application of the filter from the CALCULATE filter out all rows in the current FILTER context.
Maybe you should give ISBLANK() a try like so:
var thevalue = CALCULATE(<your CALCULATE(...)>) return IF(ISBLANK(thevalue), 0, thevalue)
If this does not help, maybe you can provide a pbix file with some sample data, upload the pbix to onedrive or dropbox and share the link.
Regards,
Tom
- Anonymous7 years agoNot applicable
Hi Tom,
Thank you so much it is working pefectly fine .
You can see the result below.
- TomMartens7 years agoSuper UserPerfect!