Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I want to write a DAX for my conditional formatting, what is wrong with this .
Actual Spent Format = IF('Project Details'[state] = "closed" ) && CALCULATE(SUM('Project Details'[Custom_ActualSpentAmount]))=0
RETURN
"red"
Thanks
Solved! Go to Solution.
Hi,
I am not sure how your desired outcome looks like, but please try the below whether it suits your requirement.
Actual Spent Format =
IF (
SELECTEDVALUE ( 'Project Details'[state] ) = "closed"
&& SUM ( 'Project Details'[Custom_ActualSpentAmount] ) = 0,
"red"
)
Hi @faheem_Latif_BI ,
Is your problem solved, if it is solved, you can mark the correct answer, if not, can provide detailed information, we can help you better.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I am not sure how your desired outcome looks like, but please try the below whether it suits your requirement.
Actual Spent Format =
IF (
SELECTEDVALUE ( 'Project Details'[state] ) = "closed"
&& SUM ( 'Project Details'[Custom_ActualSpentAmount] ) = 0,
"red"
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |