Forum Discussion
oren
Helper III
5 years agocreate measure comparing dates from different tables
HI i have a table with column "date from" and column "date to" and anothe table with all dates isung it as a filter i want to creat a measure which will give me "true" or "false" if the date i...
- Anonymous5 years ago
@oren
You can create the following measure by checking the attached pbix if necessary.Medida: IF(SELECTEDVALUE('Table 2'[Date]) en VALUES('Table'[Date]),TRUE(),FALSE())Paul Zheng _ Community Support Team
If this post helps, please accept it as the solution to help the other members find it faster.
amitchandak
Super User
5 years agooren , Try measure like
measure =
if(isblank(max(Date[Date])),0,1)
or
measure =
var _min =minx(allselected(date),date[date])
var _max =maxx(allselected(date),date[date])
return
if(isblank(calculate(countrow(Table), filter(Table, Table[Date] <=_max && Table[Date] >=_min))),0,1)