Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all
i have a table as follow, it has so many rows but here i bring 3 rows as example:
Branch | Channel | Invoice No. | Invoice Date | Invoice Due Date | Accounts Receivable |
---|---|---|---|---|---|
A | Retail | 1 | 01/01/2017 | 60 days after invoice date | 10 |
A | Hospital | 2 | 01/01/2017 | 90 days after invoice date | 30 |
A | Referral | 3 | 01/01/2017 | 120 days after invoice date | 50 |
i want to create a measure or expression for overdue.
our company has a rule for what to be called overdue as follow:
if channel is Retail and it has passed more than 30 days from Invoice due date it would be overdue
if channel is Referral and it has passed more than 120 days from Invoice date it would be overdue
if channel is Hospital and it has passed more than 150 days from Invoice date it would be overdue
Now i want to have an expression for overdue, which if i choose retail it shows me just retail overdue.
if i use set analysis and filter channel, it always shows me all overdue for all channel
am i suppose to use set analysis,How?
thanks in advance
No it's not the solution, it's the formula i am using. it's pretty similar to what you write.
even when i use your formula it always shows me total Overdue!
here is my table when i use no filter on my channel:
here is my table when i filter my channel on Retail:
you can see now my Accounts Receivable field shows me only Retail and Overdue Total!!
I want to see only retail overdue
i hope you can help me on this
Thanks again
Try this
Sum({$<Channel *= {Retail}, [Invoice Due Date] ={"=Today() - [Invoice Due Date] > 30"}>+$<Channel *= {Hospital}, [Invoice Due Date] ={"=Today() - [Invoice Due Date] > 150"}>+$<Channel *= {Referral}, [Invoice Due Date] ={"=Today() - [Invoice Due Date] > 120"}>}Accounts Receivable)
Thanks Sunny, it works like a charm