cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
James218 Frequent Visitor
Frequent Visitor

DAX Novice Need Help

I'm fairly new to DAX and Power Bi.  I'm trying to come up with a formula that if the Splicing Date is > 4 days from then Turnover date or blank then the Turnover Date row will turn red.  Any help would be appreciated.

 

Thanks

 

Screenshot (60).png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: DAX Novice Need Help

@James218 can you make sure data type for your columns is date.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





4 REPLIES 4
Super User
Super User

Re: DAX Novice Need Help

@James218 add a calculated column for color and use that as background in conditional formatting.

 

KPI Color = IF( 'Table'[Turnover Date] == BLANK() || Datediff( 'Table'[Turnover Date], 'Table'[Splicing Date], DAY ) > 4, "Red" )





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





James218 Frequent Visitor
Frequent Visitor

Re: DAX Novice Need Help

 

 

Thanks fo ryour help @parry2k .  Still having a little trouble.  I'm getting this error and trying to figure out what's wrong.

 

Screenshot (61).png

 

Thanks fo ryour help @parry2k .  Still having a little trouble.  I'm getting this error and trying to figure out what's wrong.

 

 

Super User
Super User

Re: DAX Novice Need Help

@James218 can you make sure data type for your columns is date.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





James218 Frequent Visitor
Frequent Visitor

Re: DAX Novice Need Help

@parry2k Thanks for your help that was the problem. 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 305 members 3,247 guests
Please welcome our newest community members: