Forum Discussion
HusseinKhalil
Helper I
6 years agoLast non blank cell and return column header
I am trying to figure out how to allocate the last non blank cell in a row, then return the column header, this is using dax. i am dealing with a spread sheet which milestones are stored in the column headers and rows full of dates as below. Results should appear as per the last column
Try something like
Switch( true(), not(isblank([Customer Received Actual])),"Customer Received Actual", not(isblank([Customer Received forecast])),"Customer Received forecast", not(isblank([Deilvery Actual])),"Deilvery Actual", not(isblank([Deilvery Received forecast])),"Deilvery forecast", not(isblank([Shipping Actual])),"Shipping Actual", "Shipping forecast")
3 Replies
- Greg_Deckler
Community Champion
Can you post that data as text?
- HusseinKhalil
Helper I
Thanks Greg,
I just got the solution
- amitchandak
Super User
Try something like
Switch( true(), not(isblank([Customer Received Actual])),"Customer Received Actual", not(isblank([Customer Received forecast])),"Customer Received forecast", not(isblank([Deilvery Actual])),"Deilvery Actual", not(isblank([Deilvery Received forecast])),"Deilvery forecast", not(isblank([Shipping Actual])),"Shipping Actual", "Shipping forecast")