Forum Discussion
ktran22
3 years agoRegular Visitor
Comparing Date Fields in PowerBI
I wanted to create a new column in my PowerBI Dashboard report that compares two date columns (<, >, >=, <=). I need the output for this new date column to either be a date or some sort of binary out...
DOLEARY85
Resident Rockstar
3 years agoIt should work if you put it in the security table, i took a sample of the data and ran a test:
Column = if(Security[Knowledge Date] < max(Approval[Approval Date]),1,0)
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
ktran22
3 years agoRegular Visitor
IT WORKED! Thank you
- DOLEARY853 years ago
Resident Rockstar
No Problem, happy to help 🙂
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- ktran223 years agoRegular Visitor
DOLEARY85 Never mind. I am still getting values that are returning true even though the knowledge date of that row is less than the MAX(Approval Date). This is the formula I inputed:
Approval Check = IF(MAX(Approval[Approval Date]) >= Security[Knowledge Date],1,0). See screenshot below. - DOLEARY853 years ago
Resident Rockstar
Check the dates are the same format in both tables
- ktran223 years agoRegular Visitor
What format should they be in? Date, true/false, text?