Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Aymansg
Regular Visitor

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 5
Greg_Deckler
Community Champion
Community 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.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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

@Aymansg Here is what I did, I ripped off a couple examples from here: Law of Diminishing Returns - Definition, Examples, Diagrams (wallstreetmojo.com)

I recreated these in Power BI. PBIX file is attached below signature. I implemented the diminishing returns as a calculated column. Turned out that this was MTBF and not a while loop. But, could implmenent a while loop to automatically identify where the diminishing returns kicks in.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@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.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Here is a dummy sample data for your reference:

 

Platform    Date  Spend   Cost

Facebook     1      2,366      3.2

Facebook     2      1,577      1.7

Facebook     3      3,627      2.7

Facebook     4      2,636      2.3

Facebook     5      3,326      3.2

Facebook     6      1,782      2.3

Facebook     7      6,213      2,4

Facebook     8      3,163      3.2

Facebook     9      4,118      3.4

 

 

I have historical data for two years and can breakdown by day/week/month and for different platforms.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.