Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have two measure values. One specific for January and other for rest of the months. If Jan is selcted then display Jan value else display other value. Can this be done using an switch?
Final Term:=
SWITCH(
TRUE(),
VALUES('Forecast Calendar'[Month Short Name])="Jan",[January Terms],
[Terms Non-Blank]
)
Solved! Go to Solution.
Well yes it can although I probably would not use SWITCH for only 1 condition but rather if there are multiple conditions
Final Term =
SWITCH (
VALUES ( 'Forecast Calendar'[Month Short Name] ),
"Jan", [January Terms],
[Terms Non-Blank]
)I probably would go with this since there's only 1 IF Statement
Final Term =
IF (
SELECTEDVALUE ( 'Forecast Calendar'[Month Short Name] ) = "Jan",
[January Terms],
[Terms Non-Blank]
)However they should both work! ![]()
Well yes it can although I probably would not use SWITCH for only 1 condition but rather if there are multiple conditions
Final Term =
SWITCH (
VALUES ( 'Forecast Calendar'[Month Short Name] ),
"Jan", [January Terms],
[Terms Non-Blank]
)I probably would go with this since there's only 1 IF Statement
Final Term =
IF (
SELECTEDVALUE ( 'Forecast Calendar'[Month Short Name] ) = "Jan",
[January Terms],
[Terms Non-Blank]
)However they should both work! ![]()
Doesn't like the syntax for 'SELECTEDVALUE'. The SWITCH works just for Jan but when I select Feb, it displays 0 instead of the feb terminations.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |