Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi everybody,
I have a dataset where I want to compute the ageing of some items to date.
Basically what I want to do is very easy, it's a subtraction of the item date and TODAY() function.
I tried to do it creating a measure using DATEDIFF, however when I use this function I cannot select the column field containing the item dates after the parenthesis.
Why I cannot use it as a measure? Should I then go to the query editor? If yes, what's the formula to use instead of DATEDIFF?
Thanks in advance.
Andrea
Solved! Go to Solution.
Hi @Anonymous
Have you tried using the DATEDIFF function in a calculated column, rather than in a calculated measure?
Do you hve a small sample set of data?
Hi @Anonymous
Have you tried using the DATEDIFF function in a calculated column, rather than in a calculated measure?
Do you hve a small sample set of data?
Hi @Phil_Seamark,
it worked perfectly. Could you please tell me what's the difference between a measure and a calculated column?
Thanks in advance.
Cheers,
Andrea
Hi @Anonymous
Sure. Here is one of the better summaries I have seen recently
https://community.powerbi.com/t5/Desktop/column-vs-measure/m-p/13201/highlight/true#M3304
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 106 | |
| 39 | |
| 36 | |
| 27 |