cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I have a table with PO's and the status and comments. a PO can be more than one time with a status -comment date and time. I'm merging that table with a Universe that has AR data, based on PO. I want to show the PO AR data plus the latest status and comment. Currently, I'm able to display those that only have one instance of data, but for the ones with more than one, I'm getting a Multivalue error. I created a variable that identifies the Max date and the max time and displays the status or a"-" for the rest. But I'm stuck there.

Thank you

status-table-2022-12-28-14-23-05-window.png

multivalue-error-2022-12-28-14-24-15-window.png

Accepted Solutions (1)

Accepted Solutions (1)

bekart
Participant
0 Likes

Hi Ivan,

I recreated your issue and below you can find the solution. I see that you have date/time of note/status creation which is necessary to determine the latest note/status. Here I got two universes and the left table is showing only one PO with latest note - that's your expectations.

I had to create a variable [check_date] which is checking and marking the latest comment/note for each PO:

=If([Main PO Progress Creation DateTime]=Max([Main PO Progress Creation DateTime]) In ([Query 1].[Main PO No])) Then 1 Else 0

Next step is merging dimensions ([Purchase Order No] and [Main PO no] in my case.

Then you need to create variable (detail) as below:

=[Main PO Progress Note] Where ([check_date]=1)

And in that way you will achieve what you want as you can see on first screenshot:)

igaleano2
Discoverer
0 Likes

Thank you for your Help, I did not know how to accept the answer.

Answers (0)