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

want to get the count or values of the column

Hi,
want to work on a dax to get the coun't or values in that perticular colum.

 

CALCULATE(count('Marckeet License rep1'[AccessID]),not(DISTINCT('Marckeet License rep1'[purchaserEmailId])) in values('Marckeet License rep1'[ userEmailid]))
 
help me out to correct it.
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

I think it also can work for me thanks will check it even i have worked on it

 

Measure 9 = CALCULATE(SELECTEDVALUE('Marckeet License rep1'[purchaserEmailId]),NOT('Marckeet License rep1'[purchaserEmailId])in values('Marckeet License rep1'[userEmailid]))
 
in this way

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Try it.

Measure = CALCULATE(count('Marckeet License rep1'[User ID]),FILTER( 'Marckeet License rep1',NOT([User ID]) in VALUES('Marckeet License rep1'[Empl ID])))

The final show:

vyalanwumsft_0-1659944127994.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Try it.

Measure = CALCULATE(count('Marckeet License rep1'[User ID]),FILTER( 'Marckeet License rep1',NOT([User ID]) in VALUES('Marckeet License rep1'[Empl ID])))

The final show:

vyalanwumsft_0-1659944127994.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-yalanwu-msft 

How to show values insted of count. I have tried with selected values function but it works for only single value. How to make it work if there are multiple values user ID.

 

Measure = CALCULATE(selectedvalues('Marckeet License rep1'[User ID]),FILTER( 'Marckeet License rep1',NOT([User ID]) in VALUES('Marckeet License rep1'[Empl ID])))

 

 can you help me out in this?

PC2790
Community Champion
Community Champion

Hey @Anonymous ,

 

Your requirement is not very clear. Can you please elaborate?

Also, please provide sample data.

Anonymous
Not applicable

Empl IDUser ID
6834668346
4510845108
55825582
47084708
4548645486
5760257602
3868338638
9079090790
3863838638
6762467624
4510845108
9079090790
116070116070
114617114614

 

Here is some data in which I want to get distinct of user id values which are not in employee id . Can you help me out

PC2790
Community Champion
Community Champion

Something like this?

PC2790_0-1659522426007.png

DistinctCountofMissing = 
var _counttotal = DISTINCTCOUNT(UserTable[User ID])
var _countofpresentvalues = CALCULATE(DISTINCTCOUNT(UserTable[User ID]),
TREATAS(SUMMARIZE(UserTable,UserTable[Empl ID]),UserTable[User ID]))
return
_counttotal-_countofpresentvalues
Anonymous
Not applicable

I think it also can work for me thanks will check it even i have worked on it

 

Measure 9 = CALCULATE(SELECTEDVALUE('Marckeet License rep1'[purchaserEmailId]),NOT('Marckeet License rep1'[purchaserEmailId])in values('Marckeet License rep1'[userEmailid]))
 
in this way

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.