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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Time range filter

I have a table as below

 

Groups12 AM1 AM2 AM3 AM4 AM5 AM6 AM7 AM
G-SUPPORT3222771801431019413477
A-SUPPORT10423464860573533
B-SUPPORT1419193838165310
F-SUPPORT349260232271136193178110

 

we have three shifts from 12 - 2 , 2 -4 and 4- 7 AM, i created a shift table as below

 

IDshift _descType
112 AM - 2 AM1 st
22 AM - 4 AM2nd
34  AM - 7 AM3rd

 

I want to create a filter for shift_desc. When i select 12 AM - 2AM check box i want above table to display in range 12 AM - 2 AM.How can i do this?

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , in order to apply filter to a range of time, I convert the tables given that DAX functions in a column-wise manner.

Screenshot 2020-11-01 062912.pngScreenshot 2020-11-01 062844.png

Then slicer works easily,

Screenshot 2020-11-01 063159.png

You might want to refer to the attached file for more details.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

1 REPLY 1
CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , in order to apply filter to a range of time, I convert the tables given that DAX functions in a column-wise manner.

Screenshot 2020-11-01 062912.pngScreenshot 2020-11-01 062844.png

Then slicer works easily,

Screenshot 2020-11-01 063159.png

You might want to refer to the attached file for more details.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.