We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello all
I have this table:
This is a table to reminde me that i have to pay for each contract, on that day, for all the months between In Date and End Date.
I believe i have to figure out how many months do i have between those 2 dates, add the day and year to that number, and the value to it.
The only problem is that i don't know how to do it and it has to be in power query.
Anyone can help me?
Thanks a lot guys
Pedro
Solved! Go to Solution.
I am a little bit confused, you want the Months or the days?
(Date.Year([End Date])-Date.Year([In Date]))*12
+
Date.Month([End Date])-Date.Month([In Date])or
Duration.TotalDays([End Date]-[In Date])
I am a little bit confused, you want the Months or the days?
(Date.Year([End Date])-Date.Year([In Date]))*12
+
Date.Month([End Date])-Date.Month([In Date])or
Duration.TotalDays([End Date]-[In Date])
Very good. Thanks a lot!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |