Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everybody,
I would like to create an IF-Statement based on the month. But when I type it in like this it always return an error. Any way to fix this?
Measure =
IF('IMTT: MASTER TABLE'[Year_Month] = "2023/01", 1, 2)
Solved! Go to Solution.
@Anonymous
you can try this
Measure =
IF(SELECTEDVALUE('IMTT: MASTER TABLE'[Year_Month] )= "2023/01", 1, 2)
OR
Measure =
IF(MAX('IMTT: MASTER TABLE'[Year_Month]) = "2023/01", 1, 2)
Proud to be a Super User!
@Anonymous
you can try this
Measure =
IF(SELECTEDVALUE('IMTT: MASTER TABLE'[Year_Month] )= "2023/01", 1, 2)
OR
Measure =
IF(MAX('IMTT: MASTER TABLE'[Year_Month]) = "2023/01", 1, 2)
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |