Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

If and DAX Measure error

Hi Experts

 

Getting an erorr with the following if measure (second if step)

Elasped RAG Status = IF(FACTNEWBI_IncidentAudit[Elapsed Time] >24, "Red", IF(FACTNEWBI_IncidentAudit[Elapsed Time] >=12 && <24, "Amber","")
1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

Try the following. I think you were missing a bracket at the end and needed to give a specifc column after the &&

IF(
	FACTNEWBI_IncidentAudit[Elapsed Time] >24, 
	"Red", 
	IF(
		FACTNEWBI_IncidentAudit[Elapsed Time] >= 12 && FACTNEWBI_IncidentAudit[Elapsed Time] < 24, 
		"Amber",
		BLANK()
	)
)


Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

1 REPLY 1
bcdobbs
Community Champion
Community Champion

Try the following. I think you were missing a bracket at the end and needed to give a specifc column after the &&

IF(
	FACTNEWBI_IncidentAudit[Elapsed Time] >24, 
	"Red", 
	IF(
		FACTNEWBI_IncidentAudit[Elapsed Time] >= 12 && FACTNEWBI_IncidentAudit[Elapsed Time] < 24, 
		"Amber",
		BLANK()
	)
)


Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.