Forum Discussion
Boolean statement if item exists between tow dates
- 5 years ago
xonder , Create a measure like this and try with ID
measure =
var _max = maxx(allselected(Table), Table[Date])
var _tab =summarize(filter(Table, Table[Date] =_max),Table[ID])
return
calculate( count(Table[ID]), filter( Table, Table[Date] <_max && not(Table[ID] in _tab))) - 5 years ago
Hi xonder ,
You can create two measure for counting ID that are marked "Sold" and those marked "For Sale":
ID For Sale = CALCULATE(COUNT('Table'[ID]),FILTER('Table',[Status] = "For Sale")) ID Sold = CALCULATE(COUNT('Table'[ID]),FILTER('Table',[Status] = "Sold"))Put them in values and it will show as legends.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Thank you amitchandak and AlB for your replies. These however do not solve my issue.
Is there a way to simply have a table with each ID and a measure that tell me whether a ID is Sold or Not Sold?
An ID is sold if it no longer appears in the latest data extract I do.
Thanks for your help!