Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi, I have requirement as explained below, and please refer to attached picture.
There are two date slicers. User can select only one date in each slicer, like Start Date and End Date respectively. I am not using Range as user want specifically two boxes to select.
Now coming to the need, i want the table and bar graph to show only the two dates that user selected from both slicers. Right now on the picture/report they show all the dates.
Basic need is, based on the selected two dates by user, i need to show only those Month end day records in all the visuals on the page. Also we need to calculate Sales difference between those two days (I have already acheived this over measure)
Thanks
Manoj
Solved! Go to Solution.
@manalla , Try a measure like
measure =
var _min = maxx(allselected(slicer_start),slicer_start[date])
var _min = maxx(allselected(slicer_end),slicer_end[date])
return
calculate([measure4], filter(Table(2),Table(2)[Date] = eomonth(Table(2)[Date],0) && Table(2)[Date] >= _min && Table(2)[Date] <=_max))
@manalla , Try a measure like
measure =
var _min = maxx(allselected(slicer_start),slicer_start[date])
var _min = maxx(allselected(slicer_end),slicer_end[date])
return
calculate([measure4], filter(Table(2),Table(2)[Date] = eomonth(Table(2)[Date],0) && Table(2)[Date] >= _min && Table(2)[Date] <=_max))
Hi @amitchandak
Had to slightly tweak the MIN and MAX of date variables. Below is the modified and working measure.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |