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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors