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.
I have a table with YTD spend % based on Approved budget & YTD spend % based on original Plan. I want to conditional format both columns based on another column which has some numbers which is a reference column.
Condition 1 - IF YTD spend % based on Approved budget < Reference Column, 1, 0
Condition 2 - IF YTD spend % based on original Plan < Reference Column, 1,0
I wrote DAX as follows:
1.
Solved! Go to Solution.
If possible, use measures instead of calculated columns.
Measure for YTD Spend % Flag Approved Budget:
YTD Spend % Flag Approved Budget Measure =
IF(
MAX('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Approved)]) < [Ytd Approved Budget],
1,
0
)
Measure for YTD Spend % Flag Original Plan:
YTD Spend % Flag Original Plan Measure =
IF(
MAX('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Original)]) < [Ytd Original Plan],
1,
0
)
Proud to be a Super User! |
|
It worked, Thank you very much.