The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @Anonymous,
I'd like to suggest you add calculated column with if statement to return specific color text which used in 'conditional formatting' feature based on 'field value' option.
For example:
Conditional Color = VAR lastBusinessDay = MAXX ( FILTER ( CALENDAR ( DATE ( [Date].[Year], [Date].[MonthNo], 1 ), [Last Day of the month] ), WEEKDAY ( [Date], 2 ) <= 5 ), [Date] ) RETURN IF ( [Date] <> [Last Day of the month], IF ( [Date] <> lastBusinessDay, "Blue", IF ( WEEKDAY ( [Date], 2 ) <> 5, "Blue", "Black" ) ), IF ( WEEKDAY ( [Date], 2 ) > 5, "Orange", "Black" ) )
Conditional formatting in tables
Regards,
Xiaoxin Sheng
Hi @Anonymous,
I'd like to suggest you add calculated column with if statement to return specific color text which used in 'conditional formatting' feature based on 'field value' option.
For example:
Conditional Color = VAR lastBusinessDay = MAXX ( FILTER ( CALENDAR ( DATE ( [Date].[Year], [Date].[MonthNo], 1 ), [Last Day of the month] ), WEEKDAY ( [Date], 2 ) <= 5 ), [Date] ) RETURN IF ( [Date] <> [Last Day of the month], IF ( [Date] <> lastBusinessDay, "Blue", IF ( WEEKDAY ( [Date], 2 ) <> 5, "Blue", "Black" ) ), IF ( WEEKDAY ( [Date], 2 ) > 5, "Orange", "Black" ) )
Conditional formatting in tables
Regards,
Xiaoxin Sheng