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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jtischler
Helper I
Helper I

Can't get Filter Syntax

I want to divide The distinct count of Table1[ColumnA] when [columnB] = "Active"

 

by

 

Distinct count of Table2[columnA]

 

I have been beating my head for hours and am now asking for help please?  Whats wrong with my expression?

 

Count of User unique ID divided by Count of user_id =

    DIVIDE
        (FILTER('New Dashboard',[Employee Status] = "Active"
            (DISTINCTCOUNT('New Dashboard'[User unique ID]
                )
            )
        ),
       
    DISTINCTCOUNT('UserData'[User unique ID])
        )
1 REPLY 1
HotChilli
Super User
Super User

You'll want a scalar value for that numerator instead of

FILTER('New Dashboard',[Employee Status] = "Active"
            (DISTINCTCOUNT('New Dashboard'[User unique ID]
                )
            )
        )
 
Think you want a CALCULATE ( expression , filter) type of thing here where the expression is the distinctcount.
Just try it without the DIVIDE for now and when you get it right, sub it into the divide.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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