Forum Discussion
insandur
Helper II
3 years agoSUM DAX Query on condition
I have a table with shipment number and dates. Need to calculate the Total backlog of that shipment and consider the latest date value and sum the column. Shipment Date Backlog Re...
Anonymous
3 years agoNot applicable
Hi insandur ,
I have modified the answer. Please refer to it to see if it helps you.
Measure = SUMX(FILTER(ALL('Table'),'Table'[Shipment]=SELECTEDVALUE('Table'[Shipment])),[Mbacklog])Measure2 =
VAR _maxdate =
MAXX ( ALL ( 'Table' ), 'Table'[Date] )
RETURN
SUMX(
FILTER ( ALL ( 'Table' ), 'Table'[Date] = _maxdate )
,[Mbacklog])
The [Mbacklog] is also a measure.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
insandur
Helper II
3 years agoThanks again, But i dont get the desired ans😐 Please see the screenshots
- Anonymous3 years agoNot applicable
Hi insandur ,
There is nothing error with the measure. In my pbix file, it works well. How the [Backlog2] calculates? Could you please provide your pbix file without privacy information for us testing?
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.