The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
please see the table below for reference, and the desired outcome as well
I appreciate all the help I can get. Thank you!
Solved! Go to Solution.
Hi @Anonymous
You want a measure or a calculated column? Here is a column
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])
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] )
Regards,
Xiaoxin Sheng
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] )
Regards,
Xiaoxin Sheng
Hi @Anonymous
You want a measure or a calculated column? Here is a column
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])