cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nrosa1 Frequent Visitor
Frequent Visitor

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
Super User

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

I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

3 REPLIES 3
Highlighted
Super User
Super User

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

I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

nrosa1 Frequent Visitor
Frequent Visitor

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

  

Super User
Super User

Re: Display value from Column

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


I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 129 members 1,866 guests
Please welcome our newest community members: