Forum Discussion
Get Last value previous month
- Anonymous4 years ago
i found the solution with this table definition and new measure
receipt Group = ADDCOLUMNS( Summarize( ReceiptLine, ReceiptLine[ITEMID],ReceiptDate[Year-month],ReceiptDate[Year]) ,"_Mt au PRI N-1", [Qte YTD]*[Price N-1]) new measure ==> test = CALCULATE(max('receipt Group'[_Mt au PRI N-1]),Filter('receipt Group','receipt Group'[Year]=SELECTEDVALUE(ReceiptDate[Year]) && 'receipt Group'[Year-month]<= SELECTEDVALUE(ReceiptDate[Year-month])))
Anonymous , the expected value is not clear
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
hi amitchandak
i created a new pbix file without sensitive data based on my screenshot but i can't upload it (file type is not supported)
How can i share it ?
- amitchandak4 years agoSuper User
Anonymous , upload on onedrive or dropbox and share link
- Anonymous4 years agoNot applicable
- Anonymous4 years agoNot applicable
hi amitchandak
Do you have acces to the file ?
If yes, do you have any idea on my issue ?
Thanks for your help
- Anonymous4 years agoNot applicable
i found the solution with this table definition and new measure
receipt Group = ADDCOLUMNS( Summarize( ReceiptLine, ReceiptLine[ITEMID],ReceiptDate[Year-month],ReceiptDate[Year]) ,"_Mt au PRI N-1", [Qte YTD]*[Price N-1]) new measure ==> test = CALCULATE(max('receipt Group'[_Mt au PRI N-1]),Filter('receipt Group','receipt Group'[Year]=SELECTEDVALUE(ReceiptDate[Year]) && 'receipt Group'[Year-month]<= SELECTEDVALUE(ReceiptDate[Year-month])))