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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Raaz
Helper II
Helper II

Recursive addition of a measure

Hi Community Experts,

 

I need to increment a measure with each refresh (manual or scheduled) of my power bi.

 

I need to take input from user and need to set the measure initial value as haf of the entered value and with each refresh want to add this half value to the measure previous value.

 

I have used 'what-if' parameter to take user's input but unable to increment the meausre recursively.

 

Example: Parameter 1 Value = 10 (user entered value)

var  y  = (parameter Value 1 ) /2

x (measure to set initially and increment) = 0

 

Now  I want x to behave like this with each refresh

x= x + y

 

First time x=5 (as user enterd 10 and y is half of parameter value; x= 0 +5)

refresh:  x = 10       (x= 5, y = 5)

another refresh:  x =15    (10+5)

Is this poassible to achieve ?

 

Thanks.

 

 

2 ACCEPTED SOLUTIONS

Hi @Raaz ,

 

take a look at this.

https://www.thebiccountant.com/2020/04/13/create-a-load-history-or-stage-in-cds-instead-of-increment...

You can implement user input with a power app if necessary.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

v-kelly-msft
Community Support
Community Support

Hi  @Raaz ,

 

I'm afraid your requirement is difficult to realize,as we cant calculate based on refresh,and after refresh,all the data will be rewritten.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Raaz ,

 

I'm afraid your requirement is difficult to realize,as we cant calculate based on refresh,and after refresh,all the data will be rewritten.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi @Raaz ,

 

take a look at this.

https://www.thebiccountant.com/2020/04/13/create-a-load-history-or-stage-in-cds-instead-of-increment...

You can implement user input with a power app if necessary.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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