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
Anonymous
Not applicable

Count

Hi, 

I am struggling to visually show how many repeat investors there are in my data for different funds. I have made a sample data set here: 

cnormand_0-1594157092337.png

My goal is when I input another fund into this data, I can check that new funds investors against all of the investors that I already have. For example, I want to see if there are any matches between Fund 4's investors and the rest of the fund's investors. When I try a pivot table, it will show the column "Count of Investors" as 1 under the Fund 4's name "Louis", even though the name Louis is already in the data set multiple times in different funds: 

cnormand_0-1594157508081.png

I would really appreciate any help I could get, as I am fairly new at Power BI and have spent countless hours trying to figure this out. Thank you

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Just a small change to @mahoneypat  formula for your desired result.

 

Fund Count =
IF (
    ISINSCOPE ( 'Table'[Name] ),
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Fund] ),
        ALL ( 'Table'[Fund] )
    ),
    CALCULATE (
        COUNT ( 'Table'[Fund] )
    )
)

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

View solution in original post

4 REPLIES 4
mahoneypat
Employee
Employee

You could write a Fund Count measure like this and use it instead of your count measure.

 

Fund Count =
CALCULATE ( DISTINCTCOUNT ( Table[Fund] ), ALL ( Table[Fund] ) )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thank you @mahoneypat 

 

This worked for the individual fund names, however, it says there are 4 investors in each of the funds. Is there a way to have that show the actual amount? 

 

Like shown in the picture below, it says 4 for all of them, when clearly there are 7 investors in Fund 3. 

cnormand_0-1594172661887.png

 

Hi @Anonymous ,

 

Just a small change to @mahoneypat  formula for your desired result.

 

Fund Count =
IF (
    ISINSCOPE ( 'Table'[Name] ),
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Fund] ),
        ALL ( 'Table'[Fund] )
    ),
    CALCULATE (
        COUNT ( 'Table'[Fund] )
    )
)

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

Anonymous
Not applicable

I also tried to do it this way: 

cnormand_0-1594158448813.png

I edited the interactions so that the top left slicer (Fund) would filter the bottom left slicer(investor), but when I click "select all" on the bottom left slicer, it gives me all of the investors name in that matrix, not just Fund 1's investors. 

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.