cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Display value from Column

Choose Value.PNG

 

I am trying to figure out the best solution to display the value from Order No. If no value in Order No exists, then I would like to display PO No. If there is no value in either, display "Unprocessed". The goal for this is to display an Order No/PO No/ Unprocessed for each item number based off the demand date and the Par location ID it was ordered from. Let me know if additional info is required. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IX
Super User IX

Re: Display value from Column

So, a column form of this would be:

 

Column = 
SWITCH(TRUE()
  ISBLANK([Order No]) && ISBLANK([PO No]),"Unprocessed",
  ISBLANK([Order No[), [Po No],
  [Order No]
)

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Highlighted
Super User IX
Super User IX

Re: Display value from Column

So, a column form of this would be:

 

Column = 
SWITCH(TRUE()
  ISBLANK([Order No]) && ISBLANK([PO No]),"Unprocessed",
  ISBLANK([Order No[), [Po No],
  [Order No]
)

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
Anonymous
Not applicable

Re: Display value from Column

Greg,

 

This worked great. Thanks

 

Also just if anyone else uses this solution, don't forget the comma after SWITCH(TRUE( )

Column = 
SWITCH(TRUE(),
  ISBLANK([Order No]) && ISBLANK([PO No]),"Unprocessed",
  ISBLANK([Order No[), [Po No],
  [Order No]
)

  

Highlighted
Super User IX
Super User IX

Re: Display value from Column

Ack! My bad, syntax error! Glad it worked though!!


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors