Forum Discussion
DAX measures when there are two date columns
- Anonymous4 years ago
Thanks a lot!!
It's working perfectly 🙂
Use a calendar table
Connect the date from the calendar table to the "created on" date with an active connection
Connect the date from the calendar table to the "defect date" with an inactive connection.
Use the DAX function USERELATIONSHIP() in your measures to switch relationships on the fly.
"If I use the Defect filter date the defect % should be total defects/orders created on the defect date".
This is unclear. Please show the expected outcome.
Hi,
Thank you for reply.I'm able to get the defect % that you mentioned above using the measure that I have created.This gives me how many of the orders logged on 3/1/21 turned out out to be defective - 71.4%
My real issue is when I select a date from defect type filter, it should give me the % of defect out of all the orders created on the selected defect date.
Based on created on date - on 3rd March I had 7 orders and 5 were logged as defects
Based on defect date filter :
Is this kind of calculation possible?