Forum Discussion
Issue in getting Last day value for months
If you can provide some sample data that would help a lot. This is one of those cases where it's probably a fairly simple fix based on how the visual is set up (sorting by months or days, for example) - but without sample data or extra information, it's tough to diagnose exactly what to recommend as a fix.
Thank you. Please find two dates data for a few months for two databases. Hope this helpls
DATE SIZE DB
2/28/2019 82298235897 /h/d/acxiom_d2.db
2/27/2019 69319379088 /h/d/acxiom_d2.db
3/12/2019 97253210737 /h/d/acxiom_d2.db
3/11/2019 88956890579 /h/d/acxiom_d2.db
1/30/2019 59873497629 /h/d/acxiom_d2.db
1/29/2019 53114341773 /h/d/acxiom_d2.db
2/28/2019 321013903444 /h/d/brri_d2.db
2/27/2019 301910611943 /h/d/brri_d2.db
3/12/2019 521906815029 /h/d/brri_d2.db
3/11/2019 422353275041 /h/d/brri_d2.db
1/30/2019 252799734384 /h/d/brri_d2.db
1/29/2019 223246188600 /h/d/brri_d2.db
- tarunsingla7 years ago
Solution Sage
Create a calculated measure:
Latest Size =VAR LastDateOfTheMonth = ENDOFMONTH(VALUES(TableName[DATE]))RETURN CALCULATE (SELECTEDVALUE (TableName[SIZE]), TableName[DATE] = LastDateOfTheMonth)Hope this helps.Regards,Tarun