Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
HI All
I know this is newbie question (which i am)
I would like to have a total count based on word/s in a row, this is so i can compare my sharepoint list data against a total count of a specific jobtitle.
I have tried
Solved! Go to Solution.
Hi @gazzo1967
Providing that you have only two abriviations of Watch Commander ( A, B ), you could use the DAX expression below.
WatchCount = CALCULATE( COUNTROWS( 'User Information List' ), 'User Information List'[JobTitle] IN { "Watch Commander A", "Watch Commander B" } )
This will give you the below result.
Hi @gazzo1967
The below measure will search for "Watch Commander" within a string.
WatchCount = CALCULATE( COUNTROWS( 'User Information List' ), IFERROR( SEARCH( "Watch Commander", 'User Information List'[JobTitle] ), 0 ) > 0 )
Hi
I have a Jobtitle column that has multiple Jobtitles (from the user infomation list on sharepoint)
Jobtiltes could be
Watch Commander A
Watch Commander B
Crew Commander
etc
I would like to get the total count of Watch Commanders from the column
So i can use it as a comparison
Gary
Hi @gazzo1967
Providing that you have only two abriviations of Watch Commander ( A, B ), you could use the DAX expression below.
WatchCount = CALCULATE( COUNTROWS( 'User Information List' ), 'User Information List'[JobTitle] IN { "Watch Commander A", "Watch Commander B" } )
This will give you the below result.
Thank you for responding again.
I am creating a new measure and pasting the code but when i then 'drag'
Jobtitl field - ID - WatcCount i have no figures
What im after is
Count how many times Watch Commader appears in the column Jobtitle
Jobtitle is populated with approx 600 different titles.
Sorry if i didn't make it clearer 😞
Again i appreciate you time and help
Gary
Hi @gazzo1967
The below measure will search for "Watch Commander" within a string.
WatchCount = CALCULATE( COUNTROWS( 'User Information List' ), IFERROR( SEARCH( "Watch Commander", 'User Information List'[JobTitle] ), 0 ) > 0 )
Hi @gazzo1967
No problem, Happy to help!
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
111 | |
96 | |
96 | |
67 | |
63 |