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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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. 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.