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.
Hello everyone,
I have a question. When I use the Datesinperiod function, it always returns the future dates, is there any way to eliminate them?
Here is my code
Solved! Go to Solution.
You could try DATESBETWEEN('Date'[Date], MAX('Fact table'[Date]), TODAY())
A properly formed date table will have dates until 31 December in the final year, which could be why you're getting dates in the future. If you want to restrict it to 1 month from today you could use DATESINPERIOD('Date'[Date], TODAY(), -1, MONTH)
Hi @johnt75,
I can not use Today(), because I need to include all the previous dates. My ideal result is from last date of my data to today. Is that possible?
You could try DATESBETWEEN('Date'[Date], MAX('Fact table'[Date]), TODAY())
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |