Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Summarize projects without audit date

Hello,

 

I have 2 Data Sources. (Data samples below)

 

ProjectsDB

ProjectID
A630BDP
433SRMA
A630POB
433PPC
433PED
433BUP
A325WLO
433FRI

 

 

ProjectAuditsDB

ProjectAuditIDProjectIDAuditDate
433PPC_BA03433PPC13/06/2016
433PED_BA07433PED14/06/2016
433SRMA_BA06433SRMA08/06/2016
B891FMM_BA02B891FMM07/06/2016
A630BDP_BA10A630BDP25/05/2016
433GFO_BA01433GFO23/05/2016
A630POB_BA02A630POB16/05/2016

 

 

Some Projects have been audited and some have not. The latter, therefore, have no Audit Date.

 

I wanted to create a Summarize Table with all the Project IDs that were not audited using the following expression.

 

ProjectAuditsDB_NOT AUDITED = SUMMARIZE(ProjectsDB,ProjectsDB[ProjectID],"NOT AUDITED", CALCULATE(COUNTAX(ProjectAuditsDB,ProjectAuditsDB[AuditDate]),filter(ProjectAuditsDB,ProjectAuditsDB[AuditDate]="")))

 

But it is generating the following error

"DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."

 

I tried using

filter(ProjectAuditsDB,ProjectAuditsDB[AuditDate]=null)))

 

But it is not accepted

 

"Operator or expression 'NULL' is not supported in this context."

 

 

This one does not generate an error but it returns the wrong project list, and I cannot figure out why either.

 

ProjectAuditsDB_NOT AUDITED = SUMMARIZE(ProjectsDB,ProjectsDB[ProjectID],"NOT AUDITED", CALCULATE(COUNTAX(ProjectAuditsDB,ProjectAuditsDB[AuditDate]),filter(ProjectAuditsDB,ProjectAuditsDB[AuditDate]=BLANK())))

 

 

How can I do it?

 

Thank you for your help.

J

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

HI @Anonymous

 

Try with this:

 

ProjectAuditsDB_NOT AUDITED = SUMMARIZE(Filter(ProjectsDB;COUNTROWS(RELATEDTABLE(ProjectAuditsDB))=0);ProjectsDB[ProjectID])




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

HI @Anonymous

 

Try with this:

 

ProjectAuditsDB_NOT AUDITED = SUMMARIZE(Filter(ProjectsDB;COUNTROWS(RELATEDTABLE(ProjectAuditsDB))=0);ProjectsDB[ProjectID])




Lima - Peru
Anonymous
Not applicable

YES!

 

You did it again @Vvelarde!

 

Thank you.

J

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors