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
dtartaglia
Resolver I
Resolver I

Count number of string values in multi value columns?

Hi,

 

I'm sure this is an easy one but can't seem to figure it out. All I want to do is display a tooltip for the total number of users in a selected column. The below image shows the user count from the selected red part of the column.

 

Thanks,

Dan

 

Question.PNG

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@dtartaglia

 

You can use following measure to display the total number of users in a selected column.

 

User Count_2 =
CALCULATE (
    DISTINCTCOUNT ( SurveyDataTransposed[Name] ),
    ALLEXCEPT ( SurveyDataTransposed, SurveyDataTransposed[Studio] )
)

Count number of string values in multi value columns_1.jpg

 

Best Regards,

Herbert

View solution in original post

6 REPLIES 6
v-haibl-msft
Employee
Employee

@dtartaglia

 

You can use following measure to display the total number of users in a selected column.

 

User Count_2 =
CALCULATE (
    DISTINCTCOUNT ( SurveyDataTransposed[Name] ),
    ALLEXCEPT ( SurveyDataTransposed, SurveyDataTransposed[Studio] )
)

Count number of string values in multi value columns_1.jpg

 

Best Regards,

Herbert

Hi Herbert,

 

Thanks!

Dan

Greg_Deckler
Super User
Super User

So you have this working or is that a mock-up of what you want? Any chance you can provide sample data?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I do not see how to attach a pbix.

Most times people put the pbix on their personnel OneDrive and share it.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.