cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Greg_Deckler
Super User
Super User

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!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

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!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

Anonymous
Not applicable

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]
)

  

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


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.