Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Relative date filtering works for showing values within a time period (i.e. "Last 90 days", Last Year") However, is it possible to filter values outside of a selected time period? For example, I have a work order database. I would like to display all work orders older than 90 days. How could I accomplish this? I am using Direct Query mode so creating a custom is presumably out of the question.
Solved! Go to Solution.
Hi @JDTAYLOR
You might try this measure:
Outoflast90days=
var a = SELECTEDVALUE('Table 2'[Date])
Return
IF(MAX('Table'[Date])>=a-90&&MAX('Table'[Date])<=a,0,1)
table2 is a calendar table, filter the measure with 1, and then you can get the results.
Hi @JDTAYLOR
You might try this measure:
Outoflast90days=
var a = SELECTEDVALUE('Table 2'[Date])
Return
IF(MAX('Table'[Date])>=a-90&&MAX('Table'[Date])<=a,0,1)
table2 is a calendar table, filter the measure with 1, and then you can get the results.
@JDTAYLOR ,Assuming date in slicer is from the date table. Try a measure like
Measure =
var _min = minx(date,date[date])
return
calculate([Measure2],filter(all(date),date[date]<=_min))
Thank you for the quick response @amitchandak! What is the significance of "measure2" in your formula?
Here is what I have so far.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 39 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |