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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Display data less than slicer date

HI,

 

I Need to show , how many tickets are open as on report date (slicer date) (count all open ticket less than slicer date). Find open ticket logic below,

 

Table 

TicektIDCreated DateCompleted Date
101-Jan-1902-Jan-19
201-Jan-1903-Feb-19
305-Feb-1908-Feb-19
406-Feb-19 
508-Feb-19 

* No date in completed date column for not completed ticket.

 

My Model

model.PNG

Output

out put.PNG

Expected Result

expected.PNG

 

Open ticket Logic/ formula : 

CreateDate<@SlicerDate and CompletedDate>@Slicerdate
* We stored not completed date as "9999-12-31" fro Null value

 

Please help me on it thanks

 

5 REPLIES 5
amitchandak
Super User
Super User

You can create a calculated formula with a filter clause to get the filter on two different columns. 

 

Test TWO filter Sales = ( 
VAR _Cuur_start = Generator[Report Start Date]
VAR _Curr_END = Generator[Report End Date]
return 
calculate(sum(Sales[Sales]),filter(sales,Sales[Order_Date] >= _Cuur_start && Sales[Delivery Date] <=  _Curr_END ))
)

 

 

In case, it does not work well with joined time dim, use this example to have independent date slicer  

https://medium.com/chandakamit/power-bi-comparing-data-across-date-ranges-36be49b68613

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks For your reply,

 

I can display the measure (count) , but i cant display the underlying data in table.

 

like Ticket id, Ticket name, tickt status, created date. etc...

 

in table the data filtered by month(slicer date and month)

 

but i want display all data created date less than <slicer date. (Even the data created 2 years back and open status)

 

 

In the newer version you have filter pane in older version this there are page options. Page and  Report Level filter. There add your date and in advance filter, you have before option, Hope this will work for your need

Screenshot 2019-08-31 16.31.21.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Yes, thanks

 

but i want to apply this value from slicer(selected value)

 

the filter pane it is allow satic value right?

Not very clear, what you say in the last update. Once you apply any value on filter pane, it will filter values in tables related to that table.  The filter pane allows you to choose from a calendar and it will be available to users. 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors