DAX Formula for last corresponding text value in Max Date

mattr21

New Member
Joined
Jan 27, 2020
Messages
2
Office Version
365
Platform
Windows
I am using Excel 2016 and have a very similar problem to the question posted in this previous thread:

DAX Formula for last corresponding value in Max Date

The solution given in the comments of that post work perfectly if the values I'm trying to show are numbers, but they don't work if they are text strings. When I try and use it on text strings I don't get a formula error or anything, the cells in my pivot table are just blank.

Here's the formula that works for numerical values but is not working for text values:
=CALCULATE (
IF ( HASONEVALUE ( Campaigns[Campaign_Status] ), VALUES ( Campaigns[Campaign_Status] ) ),
FILTER ( ALLEXCEPT ( Campaigns, Campaigns[Campaign_Status] ), Campaigns[Date Entered] = Max(Campaigns[Date Entered] ))
)

Thanks for any help!
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Watch MrExcel Video

Forum statistics

Threads
1,095,174
Messages
5,442,830
Members
405,200
Latest member
Barkworth

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top