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

Filter another column based on a Distinctcount

HELP PLEASE, Can anyone assist with debugging this measure, from the 2 columns of the table, I want to distinctcount the datetime column, unless the associated count column value is less than 10?? TIA Daniel

 

Capture.JPG

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

This looks like a couple of syntax errors. You need a close parenthesis for DISTINCTCOUNT and another for CALCULATE. Also, there should not be a space between > and =.

 

Try this:

15m count NEW =
CALCULATE (
    DISTINCTCOUNT ( 'Larapinta Stats (2)'[datetime] ),
    FILTER ( 'Larapinta Stats (2)', 'Larapinta Stats (2)'[Count] >= 10 )
)

View solution in original post

Anonymous
Not applicable

Excellent thankyou!

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

This looks like a couple of syntax errors. You need a close parenthesis for DISTINCTCOUNT and another for CALCULATE. Also, there should not be a space between > and =.

 

Try this:

15m count NEW =
CALCULATE (
    DISTINCTCOUNT ( 'Larapinta Stats (2)'[datetime] ),
    FILTER ( 'Larapinta Stats (2)', 'Larapinta Stats (2)'[Count] >= 10 )
)
Anonymous
Not applicable

Excellent thankyou!

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.