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
sanjay009
Helper III
Helper III

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, @sanjay009 , 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, @sanjay009 , 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
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.