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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

increasing values measure dax

hello everyone.

 

I have a dax measure question, and I would appreciate anyone who can help. 

 

The Dax measure I am trying to create should sum values between months and increase in by "x" percentage each month after

 

To be more precise am trying to:

  1. get the sum of the "values" of January and February
  2. then I would like for that the summed values of January and February to  continuously  increase by 0.02 each month  

please see the table below for reference, and the desired outcome as well

 

Screen Shot 2021-03-16 at 2.58.03 PM.png

 

I appreciate all the help I can get. Thank you!

 

 

2 ACCEPTED SOLUTIONS
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

You want a measure or a calculated column? Here is a column

Vera_33_0-1615956187688.png

Column = 
VAR CurDate = Table1[Date]
VAR FirstValue = SUM(Table1[value])
VAR N = COUNTROWS( FILTER(Table1,Table1[Date]<CurDate))-1
RETURN
IF(Table1[value]=BLANK(),FirstValue+0.02*N,Table1[value])

View solution in original post

Anonymous
Not applicable

HI @Anonymous,

I think you can write a measure with variable and summarize function and replace the blank value to 0.02, then you can summary them based on the current date.

measure =
VAR currDate =
    MAX ( 'Table'[Date] )
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( 'Table' ),
        [Date],
        "Replaced", MAX ( MAX ( 'Table'[Value] ), 0.02 )
    )
RETURN
    SUMX ( FILTER ( summary, [Date] <= currDate ), [Replaced] )

19.png

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

I think you can write a measure with variable and summarize function and replace the blank value to 0.02, then you can summary them based on the current date.

measure =
VAR currDate =
    MAX ( 'Table'[Date] )
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( 'Table' ),
        [Date],
        "Replaced", MAX ( MAX ( 'Table'[Value] ), 0.02 )
    )
RETURN
    SUMX ( FILTER ( summary, [Date] <= currDate ), [Replaced] )

19.png

Regards,

Xiaoxin Sheng

Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

You want a measure or a calculated column? Here is a column

Vera_33_0-1615956187688.png

Column = 
VAR CurDate = Table1[Date]
VAR FirstValue = SUM(Table1[value])
VAR N = COUNTROWS( FILTER(Table1,Table1[Date]<CurDate))-1
RETURN
IF(Table1[value]=BLANK(),FirstValue+0.02*N,Table1[value])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors