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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Countrows - earlier date

Hi,

 

I have column "Test" and column "Completed" and I want to add column "Test left".

 

Forumla for Test left: =COUNTIF($G$4:$G$11;">"&G4).   
 $G$4:$G$11 = Completed Column, G4 = first column under Completed

 

 

Capture.PNG

 

 

 

 

 

Thanks

 

 

 

1 REPLY 1
Stachu
Community Champion
Community Champion

try this syntax

Column = 
VAR __CurrentDate = Table1[Completed]
VAR __TableFiltered = FILTER(Table1, Table1[Completed]>__CurrentDate)
RETURN
COUNTROWS(__TableFiltered)

it returns null instead of 0 so you may want to add +0 at the end if that makes difference for you



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors