Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi there, I have the following issue:
I have a list of projects and I want to see if a project is closed or not.
So if I select the date: 20 January 2021 on my date slicer, I want to see the following result:
Project | End Date | Closed or Not Closed |
A | 5 January 2020 | Closed |
B | 18 January 2021 | Closed |
C | 1 February 2021 | Not Closed |
D | 13 March 2021 | Not Closed |
And if I select the date 4 July 2021, I want to see the following result:
Project | End Date | Closed or Not Closed |
A | 5 January 2020 | Closed |
B | 18 January 2021 | Closed |
C | 1 February 2021 | Closed |
D | 13 March 2021 | Closed |
I tried the following measure but it does not work good:
Solved! Go to Solution.
HI @Gjakova
try the below code
ProjectStatus =
VAR SelectedDate = SELECTEDVALUE(Calender[Date])
VAR ClosedOrNot=
IF(CALCULATE(MAX(Projects[end_date]), ALLEXCEPT(Projects,Projects[Project])) > SelectedDate, "Niet Closed", "Closed")
RETURN
ClosedOrNot
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
HI @Gjakova
try the below code
ProjectStatus =
VAR SelectedDate = SELECTEDVALUE(Calender[Date])
VAR ClosedOrNot=
IF(CALCULATE(MAX(Projects[end_date]), ALLEXCEPT(Projects,Projects[Project])) > SelectedDate, "Niet Closed", "Closed")
RETURN
ClosedOrNot
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Thanks so much! That seems to work. Could you perhaps explain your measure/solution so I can understand it better for the future?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
185 | |
73 | |
73 | |
50 | |
42 |