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.
I have a pretty complex script & I am stuck on the final WHERE component. The following image is straight from the table that captures the "Date Filled" and "Date Vacated" information I need to use for some reports on our organization's positions.
The first row indicates that the position was vacated and refilled = Filled
The second row indicates a brand new position that has never been filled or vacated = Vacant
The third and fourth rows indicate the position has only been occupied once and never vacated = Filled
I have compiled the following, but it is NOT showing the second row in the image above as vacant and I am not sure how to include it in the formula:
Solved! Go to Solution.
@Kyle_Wolfe_Ohio Maybe:
Is Vacant? =
VAR vToday =
TODAY ()
VAR vResult =
SWITCH (
TRUE,
[Date Filled] = BLANK() && [Date Vacated] = BLANK(), "Yes",
[Date Vacated] <> BLANK() && [Date Vacated] >= [Date Filled], "Yes",
"No"
)
RETURN
vResult
@Kyle_Wolfe_Ohio Maybe:
Is Vacant? =
VAR vToday =
TODAY ()
VAR vResult =
SWITCH (
TRUE,
[Date Filled] = BLANK() && [Date Vacated] = BLANK(), "Yes",
[Date Vacated] <> BLANK() && [Date Vacated] >= [Date Filled], "Yes",
"No"
)
RETURN
vResult
That worked! Thanks
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |