Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have Table1[dateExam] and Table1[numberPeople].
First, I need to use a CALENDAR (range slicer) to select a date (it must only consider the max date of range slicer selected). For example, I can select 10/01/2021 as my maximum date.
Second, I need to check one of the options: (in Segment). For example, I can check the option “last 7 days”.
Then, it would return me the numberPeople for the “last 7 days” of the selected date in the CALENDAR.(So the “last 7 days” is base on the CALENDAR (range slicer) I have selected.)
In other words, it would return me in a graphic, the numberPeople between 03/01/2021 and 10/01/2021.
For this example, in a graphic, I would have for each day between 03/01/2021 and 10/01/2021, the numberPeople that have done dateExam from Table1[dateExam].
Thanks!
Hello
You may try to use a field parameter as the segment slicer that consist of the measures like 'last7days','last10days'.
I created the following measure and seems works. Hope this helpful for you.
([Total People] just a sum of Table1[numberPeople])
Hello,
How did you apply the relation beetween the table Date(slicer) and Table1 ?
Thanks for your help!
Also, what kind of relation or cardinality did you apply to the table?
Can you post the screen shot or the file?
Thanks!
Hello,
Yes, I think this is close to what I want, but for your example, I see that the LAST 7 DAYS option, didn't really apply. This should be between 01/19/2020 to 01/25/2020 right (the column dateExam)?
Thanks!
I think the last 7 days apply to the result as 126 = 15+16+...+21 . Here is the relationship, hope it is helpful for you. Sorry for the late reply as so busy on my job.
Ok! But how do you do that the slicer 'Date' be functionning?
Thanks!
HI @game1,
I'd like to suggest you take a look at the following blog about create segmentation table. You can use the segment field as source of slicer to filter your table records.
Static segmentation – DAX Patterns
Regards,
Xiaoxin Sheng
Ok! But if I do CALENDAR as list check, like the option slicer?
Hi @game1,
AFAIK, the default filter effects not able to achieve your requirement.
For this scenario, I'd like to suggest you create an unconnected table source of slicer. Then you can write a measure formula to receive the filter effect and use on visual to achieve filter effects.
Regards,
Xiaoxin Sheng
Ok! But if I do CALENDAR as list check, like the option slicer?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 10 |