Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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 |
---|---|
8 | |
8 | |
5 | |
5 | |
3 |