Forum Discussion
Help with If statement (I think) please
Hello, I was hoping someone could help please
I have two tables and a due date for a record. The record is in both tables. I would like to present ther record in one visual with one of the two due dates (date 1 and date 2). The trouble I have is, if date1 is before a date in another column in another table, i'd like it to be date1, but if the date is after or equal to date 2, i'd like it to be date 2.
I hope I've explained that well enough
How would I go about this please?
Thank you for any help
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
Record measure: = IF ( HASONEVALUE ( 'ID'[ID] ), MIN ( MAX ( 'Table One'[Date one] ), MAX ( 'Table Two'[Date two] ) ) )
3 Replies
- GengarResolver I
- Jihwan_KimSuper User
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
Record measure: = IF ( HASONEVALUE ( 'ID'[ID] ), MIN ( MAX ( 'Table One'[Date one] ), MAX ( 'Table Two'[Date two] ) ) )- Pricey79Helper V
Jihwan_Kim Thank you