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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.