Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello World,
I have this new column Days past dues (Days Past Dues = DATEDIFF(Sheet1[TransactionDate ],Sheet1[PaymentDate ],DAY). Days past dues gives me the days differences between transaction date and payment date.
I have lots of negative days past dues which means the payment was done before the transaction date.
Now,
I want to create a column using some logical functions where the negative days (which means payment made earlier than the transaction date) means "Early Payment". And the one with postive days means "Late Payment". And the past due days which is 0 means"At time Payment".
Solved! Go to Solution.
Hi @Anonymous
Please try
Payment Condition =
SWITCH (
TRUE (),
Sheet1[Days Past Dues] < 0, "Early Payment",
Sheet1[Days Past Dues] > 0, "Late Payment",
"At time Payment"
)
Hi @Anonymous
Please try
Payment Condition =
SWITCH (
TRUE (),
Sheet1[Days Past Dues] < 0, "Early Payment",
Sheet1[Days Past Dues] > 0, "Late Payment",
"At time Payment"
)
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |