Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Solved! Go to Solution.
Hi , @PowerBINoob24
I think the dax is right.
Switch ( True() ,
isblank(max('Execution Status'[Approved Date])) && max('Execution Status'[Due Date]) > today() , "orange" ,
max('Execution Status'[Approved Date]) >max('Execution Status'[Due Date]),"red"
)
Please confirm that your conditions are:
(1) [Approved Date]=BLANK and [Due Date]Show "orange" > TODAY()
(2) [Approved Date]> [Due Date] when showing "red"
For the conditions you give, it is not explicitly stated that [Approved Date] = BLANK() and [Due Date]<=TODAY() and so on.
For your question, you can give us some detailed example data and corresponding output sample data in tabular form so that we can better help you.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Not sure why switching the lines made a difference, but now it works.
Switch ( True() ,
max('Execution Status'[Approved Date]) >max('Execution Status'[Due Date]),"red",
isblank(max('Execution Status'[Approved Date])) && max('Execution Status'[Due Date]) < today() , "orange"
)
@PowerBINoob24 , Try like
Switch ( True() ,
isblank(max('Execution Status'[Approved Date])) && max('Execution Status'[Due Date]) > today() , "orange" ,
max('Execution Status'[Approved Date]) >max('Execution Status'[Due Date]),"red"
)
Not sure why switching the lines made a difference, but now it works.
Switch ( True() ,
max('Execution Status'[Approved Date]) >max('Execution Status'[Due Date]),"red",
isblank(max('Execution Status'[Approved Date])) && max('Execution Status'[Due Date]) < today() , "orange"
)
Unfortunately that didn't work. The cells with the approved date populated will format red, but the cells that are blank and past due do not turn orange.
Hi , @PowerBINoob24
I think the dax is right.
Switch ( True() ,
isblank(max('Execution Status'[Approved Date])) && max('Execution Status'[Due Date]) > today() , "orange" ,
max('Execution Status'[Approved Date]) >max('Execution Status'[Due Date]),"red"
)
Please confirm that your conditions are:
(1) [Approved Date]=BLANK and [Due Date]Show "orange" > TODAY()
(2) [Approved Date]> [Due Date] when showing "red"
For the conditions you give, it is not explicitly stated that [Approved Date] = BLANK() and [Due Date]<=TODAY() and so on.
For your question, you can give us some detailed example data and corresponding output sample data in tabular form so that we can better help you.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |