I am new to DAX and wanted solution for the following report.
I want to change the background color using DAX measure in conditional formatting in my report. The lookup column is "Column2"
I am new to DAX and wanted solution for the following report.
I want to change the background color using DAX measure in conditional formatting in my report. The lookup column is "Column2"
This functionality is inbuilt in Power bi.
Create below measure
COLOUR EQUAL ROW =
IF (
HASONEVALUE ( 'DIM Hospital'[hospital_id] ),
IF (
MAX ( 'DIM Hospital'[hospital_id] ) <= 2,
"lightgreen",
IF (
MAX ( 'DIM Hospital'[hospital_id] ) <= 5,
"blue",
IF ( MAX ( 'DIM Hospital'[hospital_id] ) <= 20, "orange", "white" )
)
),
BLANK ()
)
For configuring please choose the respective column and configure the formatting as below.