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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
joshcomputer1
Helper V
Helper V

Daily, Weekly, Month filter

I just need to know if this is possible before I start to build it.  I want to send the link out to a report to a customerand have an easy to use filter for daily, weekly, and monthly.  Once the user clicks the filter, the visuals (column chart, boxes, line charts) will switch the range to that interval (ex: daily will show the last thirty days, weekly, last 9 nine weeks, etc). Then the user can click within the chart and drill down further to the day level.  I have data to the hour so daily is very important.  

 

I have no issues getting this stuff to work with static data, but the timing mechanism and drill downs seems to be difficult to implement the way I want it to.  

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@joshcomputer1,

 

One way is to simply add calculated columns and separate slicers.

isDaily =
DATEDIFF ( Table1[date], MAX ( Table1[date] ), DAY ) < 30
isWeekly =
DATEDIFF ( Table1[date], MAX ( Table1[date] ), DAY )
    < 7 * 9
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@joshcomputer1,

 

One way is to simply add calculated columns and separate slicers.

isDaily =
DATEDIFF ( Table1[date], MAX ( Table1[date] ), DAY ) < 30
isWeekly =
DATEDIFF ( Table1[date], MAX ( Table1[date] ), DAY )
    < 7 * 9
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

to add something to @v-chuncz-msft, I use this for datediffs (you'd only have to replace the column names): 

 

Collections Delay =

    SWITCH (

    TRUE ();

    Invoices[Collection Date] < Invoices[Overdue Date]; DATEDIFF ( Invoices[Collection Date];Invoices[Overdue Date]; DAY )* -1;

    Invoices[Collection Date] > Invoices[Overdue Date]; DATEDIFF ( Invoices[Overdue Date]; Invoices[Collection Date]; DAY );

    0)

 

This way, you can avoid the limitation to datediff that forces one date to be more recent than the other (Just in case you run into that issue).

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.