Forum Discussion
Dimenshing Return
I am a new user to DAX and wanted to know if it is doable to create a dimenshing return model in power bi. I have been creating it using Excel sheets but wanted to include it in the dashboard.
I have researched and found models for Linear Regression and Correlation but not for Dimenshing Return.
Can someone please advice?
5 Replies
- Greg_DecklerCommunity Champion
Aymansg Sounds interesting. Should be possible via a DAX while loop I'm thinking. But, would need sample data and expected output to be specific.
- AymansgRegular Visitor
Thanks alot for your contribution, I read through you article about for and while loops and will definitely give it a try but can you please advise on what do you mean by expected output?
The dataset is broken by day and it is a real time data that is fetched from a data source.
The dataset includes amount spent and cost per result so there is a maximum amount of spend that we reach before the cost keeps on increasing after.
Leaving the article link here for reference in case anyone wants to check it: https://community.powerbi.com/t5/Community-Blog/For-and-While-Loops-in-DAX/ba-p/636314
- Greg_DecklerCommunity Champion
Aymansg Well, really what I need to get started on this is for you to paste in some sample data. Or point me to some sample data.