Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
i have the following table
Create date status
19-03-2019 Follow-up in 3 months
20-01-2019 badfit
21-03-2019 Follow-up in 1 month
am having the status values like follow_up in 1 month, 2 month, 3 month etc,
if status followup in 3 month then expected date need to come=[ createdate(3* 30days) ]
if status followup in 6 month then expected date need to come=[ createdate(6*30days) ]
i expect following table
Create date status Expected date
19-03-2019 Follow-up in 3 months 19-05-2019
20-01-2019 badfit
21-03-2019 Follow-up in 1 month 21-04-2019
Solved! Go to Solution.
Hi @Anonymous
Firstly, create measures Follow_up Month to extract the month number, an then create measures Date1, Expected date to meet your demand.
Follow_up Month = VALUE(if((MID(SELECTEDVALUE(Table1[status]),14,1))="",0,MID(SELECTEDVALUE(Table1[status]),14,1)))
Date1 =
var d = max(Table1[Create date])
return DATE(YEAR(d),MONTH(d)+Table1[Follow_up Month],day(d))
Expected date = IF(SELECTEDVALUE(Table1[status])="badfit"," ",Table1[Date1])
Then, choose table visual to display the result.
Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EXgLDtZ8H4pMr8r9kZOeXXIBAdViPGR3iOeCAM9XsnQYcg?e=KfbXay
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Firstly, create measures Follow_up Month to extract the month number, an then create measures Date1, Expected date to meet your demand.
Follow_up Month = VALUE(if((MID(SELECTEDVALUE(Table1[status]),14,1))="",0,MID(SELECTEDVALUE(Table1[status]),14,1)))
Date1 =
var d = max(Table1[Create date])
return DATE(YEAR(d),MONTH(d)+Table1[Follow_up Month],day(d))
Expected date = IF(SELECTEDVALUE(Table1[status])="badfit"," ",Table1[Date1])
Then, choose table visual to display the result.
Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EXgLDtZ8H4pMr8r9kZOeXXIBAdViPGR3iOeCAM9XsnQYcg?e=KfbXay
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
84 | |
79 | |
71 | |
48 | |
43 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |