Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
I can't get Today () to work when I use a DatesinPeriod measure.
It just returns a blank value.
What am i doing wrong?
Here is the measure I created.
Solved! Go to Solution.
Hi @amitchandak
Thanks again for your help.
I got it to work - i was missing the .[date] after chosing the datesinperiod date
I aslo get blank result when i try this
@Sean-OReilly , Hope you have data for last 2 month, Also prefer to use a date table joined with date of your table
Rolling 2 = CALCULATE( sum(MK_Job_LedgerEntries[Total_Cost_LCY]) ,DATESINPERIOD('Date'[Date],today() ,-2,MONTH))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
HI @amitchandak
Thanks for the prompt reply, its very much appreciated.
I definitely have costs in lasty 2 months and i have extended this out to 6 months and 1 year and still blank.
I can't seem to get Datesinperiod working at all for me.
I tried to create a new Calender Table and the only thing in it is Date and then when i use the below I get the following error?
Hi @amitchandak
Thanks again for your help.
I got it to work - i was missing the .[date] after chosing the datesinperiod date
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |