Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 8 | |
| 7 |