Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi @Anonymous ,
I wonder whether I understand your requirement correctly. Do you want to return the number of days from the beginning of the year to that date for each date in the Calendar as below?
Column =
DATEDIFF ( DATE ( YEAR ( 'Calendar'[date] ), 1, 1 ), 'Calendar'[date], DAY )
Final output:
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| Months | Days Past | Last Refresh Date | ||
| 1/1/2022 | 31 | 11/20/2022 | ||
| 2/1/2022 | 59 | |||
| 3/1/2022 | 90 | |||
| … | ||||
| 11/1/2022 | 20 + prior days | |||
| 12/1/2022 |
See example table. I don't have day logic for much of my data, but do have a specific refresh_date. So, for past months, I want the days through the end of the month summed. Then, for the current month, I want the days in the prior months + the datediff between the current month start date (in this example, 11/1/2022) and the refresh date (11/20/2022).
Does this make sense?
Thanks for your help :),
Joel
Any update on the above?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 38 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 82 | |
| 69 | |
| 39 | |
| 29 | |
| 27 |