In PowerBi, I have a table called Events and a ScenarioSlicerTable. I want the user to be able choose which Scenario to display, but I also want to always display rows where Scenario is blank. These are baseline rows.
I’ve tried this code, but the SelectedValue function always returns blank for me.
If (ISBLANK(Events[Scenario]),
TRUE(),
Events[Scenario]=SELECTEDVALUE(ScenarioSlicerTable[Scenario])
I know I could always have a multi select slicer and just beg the user to select blank and one other scenario, but that’s not very professional
Sample Data
Events Table
| EventID | EventName | Scenario |
|---|---|---|
| 1 | Event A | |
| 2 | Event B | Scenario 1 |
| 3 | Event C | Scenario 2 |
| 4 | Event D | |
| 5 | Event E | Scenario 1 |
ScenarioSlicerTable
| Scenario |
|---|
| Scenario 1 |
| Scenario 2 |
Expected Output when "Scenario 1" is selected
| EventID | EventName | Scenario |
|---|---|---|
| 1 | Event A | |
| 4 | Event D | |
| 2 | Event B | Scenario 1 |
| 5 | Event E | Scenario 1 |
DAX Attempted
If (ISBLANK(Events[Scenario]),
TRUE(),
Events[Scenario] = SELECTEDVALUE(ScenarioSlicerTable[Scenario])
)

