Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
jan_V2
New Member

slicer with hardcoded date range

i have a table as data, and i want a window where if you tick a box, or using a drop down you can select a specific range using a name.

for example if you select range 1 you see all data from 5 january 2020 trough 10 january 2020.

i've tried a lot of things already, by it never seems to work properly.

 

for example, if i try to use groups, it looks like this

jan_V2_0-1673558745304.png

 

2 REPLIES 2
FreemanZ
Super User
Super User

hi @jan_V2 

supposing you have a table with two columns only, range and date. A range covers multiple dates.

If you feed the range column to a slicer and date column to a table visual. Then when you select a range on the slicer, the table visual shall present you the corresponding list of dates. Or?

i have found a way to create ranges using dax:

Column = SWITCH( TRUE(),
    [datetime]<= DATE(2021, 1, 10)  ,"group", "rest"
)
but the problem is is that my ranges are overlapping.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.