on 10-18-2019 2:51 PM
Friends
I am trying to compare 2 date dimensions to see the result value as "boolean" say True or False.
Context: say we have 2 date dimensions
1)Adate(MM-DD-YYYY)
2)Bdate(MM-DD-YYYY)
---------------------------------
Calculation/Comparision needed : If(Adate<=Bdate,"A" elsif Adate>Bdate then "B" else "NA")
Could you share your experiences...
Thanks-Bose
Hi Bose,
You could try something like this:
IF([Adate] <= [Bdate], 'A', IF([Adate] > [Bdate], 'B', 'NA' ) )
SAP Analytics Cloud supports creating nested IF statements.
In the screenshot, I have used a date field (which is actually a hierarchy) and selected day. But the logic is the same.
Kind regards,
Martijn van Foeken | Interdobs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bose,
I created the example with the BestRun_Demo model. Can you compare the setup of the hierarchy in that model compared to your own to detect any differences?
Kind regards,
Martijn van Foeken | Interdobs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.