The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi life Gurus,
what systax errror in this?
[countryName] =
VAR B = DISTINCTCOUNT('VW_UserConfig'[countryName])
,FILTER('VW_UserConfig','VW_UserConfig'[EmailAddress] == USERPRINCIPALNAME()))
RETURN
B
Solved! Go to Solution.
This is working for me thanks any way:
[Name] = CALCULATETABLE (
VALUES ( 'VW_UserConfig'[countryName] ),
'VW_UserConfig'[emailaddress] = USERPRINCIPALNAME ())
This is working for me thanks any way:
[Name] = CALCULATETABLE (
VALUES ( 'VW_UserConfig'[countryName] ),
'VW_UserConfig'[emailaddress] = USERPRINCIPALNAME ())
Hi,
I am not sure how your desired outcome looks like, but please try the below.
countryName =
VAR B =
CALCULATE (
DISTINCT ( 'VW_UserConfig'[countryName] ),
FILTER (
'VW_UserConfig',
'VW_UserConfig'[EmailAddress] == USERPRINCIPALNAME ()
)
)
RETURN
B
Or,
countryName =
VAR B =
CALCULATE (
DISTINCTCOUNT ( 'VW_UserConfig'[countryName] ),
FILTER (
'VW_UserConfig',
'VW_UserConfig'[EmailAddress] == USERPRINCIPALNAME ()
)
)
RETURN
B
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |