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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DAX Filter Assistance

So I am looking to create a column using a DAX Expression that identifies whether an assignment was past due or not. The column is called "Due in Canvas". And I am looking to use a column that will display whether or not it is later than today's date. 

 

So on the raw file, it is using a COUNTIF function to determine how many assignments were submitted later on a due date:

              =COUNTIF(Assignments!):),"<"&TODAY())

 

I know you cannot do a COUNTIF in PowerBI. I was curious to see if there is any other options I may have to achieve this count?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think I got it! But I could be wrong. So what I did was create a another column called past due. And did an IF statement to determine if the date is < TODAY && if the Deliverable was " Not Received"

View solution in original post

5 REPLIES 5
SpartaBI
Community Champion
Community Champion

@Anonymous ye sure, quite easy, just not sure exactly what you need. Can you share a sample file or a copy paste table from excel with the desired result?

Anonymous
Not applicable

@SpartaBI 

The ask is to create 2 visuals very similar to this. The report have has the total. I got the Total Assignments fine (easiest one to do). And then I was able to use a SWITCH (TRUE() to determione the multiple statuses of an assignment as Received or Not Received. 

PrivateAnalytic_0-1655304026675.png

 

Anonymous
Not applicable

I think I got it! But I could be wrong. So what I did was create a another column called past due. And did an IF statement to determine if the date is < TODAY && if the Deliverable was " Not Received"

@Anonymous Ye, look at what I just wrote in the previous message

@Anonymous still don't have enough info but will take a guess:
MEASURE = CALCULATE( COUNTROWS ( 'Table' ), 'Table' [Due in Canvas] < TODAY() )


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.