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.
I am facing 1 issue on this below requirement. My dataset have date value field created, my requirement is i want a calculated column which shows the valus based on this condition
within this week : latestdate(created)-created <=7
within 1 to 2 week : latestdate(created)-created>7 and<14
like that
pls help on this
Solved! Go to Solution.
Hello, ZRS3042
If I understand you correct try this
Column = if(MAX('Table'[Date])-'Table'[Date] <= 7; "within this week"; if(AND(MAX('Table'[Date])-'Table'[Date] > 7;MAX('Table'[Date])-'Table'[Date] <= 14); "within 1 to 2 week"))
Hi @Anonymous ,
Have you worked it out? If so, would you please kindly mark the helpful reply as an answer?
Regards,
Yuliana Gu
Hello, ZRS3042
If I understand you correct try this
Column = if(MAX('Table'[Date])-'Table'[Date] <= 7; "within this week"; if(AND(MAX('Table'[Date])-'Table'[Date] > 7;MAX('Table'[Date])-'Table'[Date] <= 14); "within 1 to 2 week"))
Thanks I will work on it
Hi @Anonymous ,
Have you worked it out? If so, would you please kindly mark the helpful reply as an answer?
Regards,
Yuliana Gu
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 |
---|---|
116 | |
102 | |
78 | |
76 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |