Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I am trying to add number of months to an exist date to get an expectation date.
So I created this measure
Expected_DateOfContract = DATEADD(Contract[ valid from],SUM(Contract[Count_of_month]),MONTH)
The problem is that for some reason I am getting an incomplete, so the result for some rows are fulfilled and for other rows there is no results .
Can anyone help? Kind regards, Ezz
Solved! Go to Solution.
@Anonymous , dateadd need continuous date. if that not there it will top at first of last date
try like
Expected_DateOfContract = DATE(year(Contract[ valid from]),month(Contract[ valid from])+ SUM(Contract[Count_of_month]),day(Contract[ valid from]))
or
Expected_DateOfContract = DATE(year(Contract[ valid from]),month(Contract[ valid from])+ (Contract[Count_of_month]),day(Contract[ valid from]))
@Anonymous , dateadd need continuous date. if that not there it will top at first of last date
try like
Expected_DateOfContract = DATE(year(Contract[ valid from]),month(Contract[ valid from])+ SUM(Contract[Count_of_month]),day(Contract[ valid from]))
or
Expected_DateOfContract = DATE(year(Contract[ valid from]),month(Contract[ valid from])+ (Contract[Count_of_month]),day(Contract[ valid from]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |