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.
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.
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
29 |
User | Count |
---|---|
94 | |
80 | |
55 | |
48 | |
48 |