This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
So I have a time slice going off of registration end date, it gets all of the enrolled, dropped, graduated students for this date. The problem is there are students who also start in this time frame that I want to list as new starts. I am new to power bit but other programming languages I would write an if statement or something along those lines. The problem is the slicer does quarters, years, months I am really unsure of how to approach this.
Here is a link to the layout https://imgur.com/a/JeBjx
How I have enrolled etc I would like to add new starts that fall within this date, even if i do it how i do hours and total students.
Here is an example, the timeslicer uses reg end date.
Name Student ID StartDate EndDate
Billy Bob 3252 1-11-2014 3-5-2016
Jay Wright 4363 2-23-2016 7-15-2019
Donny Dob 2525 1-1-2015 4-3-2017
Ringer Rod 4674 1-2-2013 4-2-2015
Solved! Go to Solution.
When you have 2 date columns, the complexity goes up. One option is to have 2 slicers, one for start date and the other for end date (just use a drop down list for both). You need to write a dax measure to manage the filtering on both columns. Something like this would work.
Total hours = calculate([total hours],filter(table, table[start date] >=selectedvalue(table[start date]) && table[end date] <=selectedvalue(table[end date])))
When you have 2 date columns, the complexity goes up. One option is to have 2 slicers, one for start date and the other for end date (just use a drop down list for both). You need to write a dax measure to manage the filtering on both columns. Something like this would work.
Total hours = calculate([total hours],filter(table, table[start date] >=selectedvalue(table[start date]) && table[end date] <=selectedvalue(table[end date])))
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |