Forum Discussion
Summarize by max over multiple line and sum the value
- 6 years ago
Hi questions ,
You need a measure as below:
Measure = var a =IF(MAX('Table'[Submitted Date])<>BLANK()&&MAX('Table'[Index])<>1,CALCULATE(SUM('Table'[qty]),FILTER(ALL('Table'),'Table'[Index]<=SELECTEDVALUE('Table'[Index]))),BLANK()) var b = SUMX(ALL('Table'),'Table'[qty]) Return a/bFinally you will see:
For the related .pbix file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution! - 6 years ago
Thanks!! it works but i just finetuning a bit so it works out...Here it is in case other users need this information.
measure =
var _tab = summarize(Table[Bill No], "_Date",firstnonbank(table[Submitted Date],0),"_qty",sum(table[Qty])
)
return
divide(sumx(_tab,if(not(isblank([_Date])),[_qty],0),sumx(_tab,[_qty]))
Try like
measure =
var _tab = summarize(Table[Bill No], "_Date",firstnonbank(table[Submitted Date]),"_qty",sum(table[Qty])
)
return
divide(sumx(_tab,if(not(isblank[_Date])),[_qty],0),sumx(_tab,[_qty]))- questions6 years ago
Helper I
Thanks!! it works but i just finetuning a bit so it works out...Here it is in case other users need this information.
measure =
var _tab = summarize(Table[Bill No], "_Date",firstnonbank(table[Submitted Date],0),"_qty",sum(table[Qty])
)
return
divide(sumx(_tab,if(not(isblank([_Date])),[_qty],0),sumx(_tab,[_qty]))- v-kelly-msft6 years ago
Community Support
Hi questions ,
Good job,so is your issue solved?Can you mark the reply as answered to close it?
Much appreciated.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!