Forum Discussion
Anonymous
7 years agoNot applicable
Converting a VBA UDF into DAX
Hi experts, Wondering if someone has already tried to convert a VBA function to DAX? Function Cover(Stock As Double, Sales As Range) As Double s = Stock c = 0 For Each sale In Sales.Cells...
- Anonymous7 years ago
Thanks! Have found this link which helped to get what I nedded...
https://community.powerbi.com/t5/Community-Blog/For-and-While-Loops-in-DAX/ba-p/636314
v-cherch-msft
7 years agoMicrosoft Employee
Hi Anonymous
I'm not familiar with VBA Function.Could you explain more about your expected output?If you need further help,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.It would be better if you can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.
Regards,