The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Solved! Go to Solution.
Hi @Anonymous
In your formula you are using a date column from the fact table which might contain gaps in date. Time Intelligence functions like DATEADD work more efficiently with a Calendar Date Table.
You need to add a Calendar date table to your model and link it to the fact table on date column, then use Calendar date column into your DAX formula.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @Anonymous ,
Dateadd returns a table that contains a column of dates, shifted either forward or backward in time by the specified number of intervals from the dates in the current context.
Do you want to return one column of data or one table?
I have create a sample data.Please have a try.
Create a measure.
Measure = EDATE(SELECTEDVALUE(Aging_label[today]),-1)
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous
In your formula you are using a date column from the fact table which might contain gaps in date. Time Intelligence functions like DATEADD work more efficiently with a Calendar Date Table.
You need to add a Calendar date table to your model and link it to the fact table on date column, then use Calendar date column into your DAX formula.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
JAN is current month and next should be ... one month before current month and next 2 month before current month.. was working fine in 2021 but after change in year creating problem
Is this date column? I mean that functions like DATEADD works only with date formatted field
Proud to be a Super User!
yes this is date column
There is something that is not clear, to our side, share the full calculation measure, maybe the date column is not complete or data model. There can be a lot of reasons why not working
Proud to be a Super User!
Hi, @Anonymous
Try to remove .[Date]
Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.
Appreciate your Kudos !!!
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
Proud to be a Super User!
tried same results
Can you share some examples of your data (sample)?
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
70 | |
52 | |
50 |
User | Count |
---|---|
120 | |
120 | |
76 | |
62 | |
61 |