calculate maximum likelihood estimate of exponential parameter in measure/use r function in measure
Hi, is there a power bi function i can use in a measure to calculate maximum likelihood estimate of a parameter for an assumed distribution? i want to use it in a measure as i want the flexibility to slice & dice the data & return output as per selection. presumably the measure will capture the filtered data & hopefully there is some way to use a function to compute some statistics from those values.
If there is no such function, is it possible to use a R function within a measure? i am hoping to basically produce the 'estimated parameter' of 2.26 in a matrix as shown in example at bottom of page here by using a function like this:
You can probably make a complicated DAX expression to get your result, but if you decide to go the R route, please see this post I wrote a while ago on how to return content from R that is not a visual.