Forum

CONCANTENATEX - Fil...
 
Notifications
Clear all

CONCANTENATEX - Filter out blanks

5 Posts
2 Users
0 Reactions
459 Views
(@rharvey)
Posts: 8
Active Member
Topic starter
 

Good afternoon

Try as I may, I am unable to solve this issue myself and therefore appeal to your expertise once again! 

I have a list of candidate results from various unit exams, I am trying to link the results of two units together to give an overall qualification result. 

A little background that may be useful…

  • The data I am using is exported from our training management system, hence why the data is presented in rows – 1 per delegate per exam / course
  • Delegates must pass both Unit exams to achieve a qualification Pass

I have popped a standard Excel formula for this on the spreadsheet (not in DAX) to demonstrate what I am trying to achieve.

 

I also have an issue when trying to use CONCANTENATEX with the unfiltered pivot table.  The pivot table lists each delegate but the CONCANTENATEX formula returns a comma for each row with the same delegate name, where the exam result cell is blank.  I have tried to filter out the blanks, with no success. 

 

Any guidance you can give would be greatly appreciated. 

Kind regards

 
Posted : 06/04/2022 5:31 pm
(@debaser)
Posts: 836
Member Moderator
 

You can filter out the blanks using something like:

=CONCATENATEX(FILTER(values(Table1[NG1 Mark]),Table1[NG1 Mark]<>BLANK()),Table1[NG1 Mark],", ")

 

Regarding your result formula - is it looking at the right columns?

 
Posted : 07/04/2022 4:36 am
(@debaser)
Posts: 836
Member Moderator
 

I think you want something like this:

=IF(COUNTROWS(filter(Table1,Table1[Course Ref]="NG1 Exam"&&Table1[Result]="PASS"))+COUNTROWS(filter(Table1,Table1[Course Ref]="NG2 Exam"&&Table1[Result]="PASS"))=2,"PASS",blank())

 
Posted : 07/04/2022 4:51 am
(@rharvey)
Posts: 8
Active Member
Topic starter
 

Wow - thanks very much Velouria - that is spot on!  

Both formulae work perfectly. Smile

I really appreciate your assistance with this - this forum is such a fab place to get in touch with Excel Masters.

Thank you so much again Velouria.  

 
Posted : 07/04/2022 11:56 am
(@debaser)
Posts: 836
Member Moderator
 

You're welcome. 🙂

I'm no master though - still mostly making it up as I go along where DAX is concerned!

 
Posted : 07/04/2022 6:39 pm
Share: