Hi,
I am using "between" type slicer for dates to filter two tables. one is for day basis data and another is for MTD.
In Between Slicer, i'm selecting dates 1st to 9th of September.
In MTD table, it is working fine as there i need data of 1st to 9th of September.(This is completed)
Another table needs to filter only for last date which is 9th of september in this case.
How to solve this.
Need help.
Thanks,
Gaurav
Solved! Go to Solution.
@Anonymous , Try like
measure =
var _max =maxx(allselected(date), Date[date])
return
calculate([measure], filter(Date, Date[date] =_max))
Hi @Anonymous ,
You can use the following filter in your measure(Use date column in Date table for slicer). For MTD table:
FILTER(ALL(MTD TABLE),MTD TABE[Date] IN VALUES(Date[Date]))
For another table:
FILTER(ALL(ANOTHER TABLE),ANOTHER TABE[Date]= MAX(Date[Date]))
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
@Anonymous , Try like
measure =
var _max =maxx(allselected(date), Date[date])
return
calculate([measure], filter(Date, Date[date] =_max))
Hi @amitchandak
measure =
var _max =maxx(allselected(date), Date[date])
return
calculate([measure], filter(Date, Date[date] =_max))
This measure is the Calculated measure used or above measure.If this is calculated measure then how i'll solve the same for 5 measure and one count(value) coming from table.
Hi @Anonymous ,
You can use the following filter in your measure(Use date column in Date table for slicer). For MTD table:
FILTER(ALL(MTD TABLE),MTD TABE[Date] IN VALUES(Date[Date]))
For another table:
FILTER(ALL(ANOTHER TABLE),ANOTHER TABE[Date]= MAX(Date[Date]))
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
@Anonymous
You can get the last date using te following function and use it in your formula.
_LastDate = MAX(Dates[Date])
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
102 | |
84 | |
68 | |
49 | |
48 |
User | Count |
---|---|
149 | |
95 | |
78 | |
71 | |
68 |