The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!