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
benk3i
Helper I
Helper I

Usage Metrics - Country of origin by email

Hi,

 

I am connected to the "Usage Metrics" dataset for a report, and I am trying to show which country each user comes from. In the dataset, there is a "Users[UserPrincipalName]" that contains the email adress. 

 

Since I cannot transform the data (supposedly because it is a connected dataset), my idea was to create a measure that says

  • When looking at the table Users[UserPrincipalName], if a row contains ".es", then return the value "Spain". 
  • Then create a long measure that includes all countries in my company. 
  • Then I can show "Views from Spain: X"

I have tried various ways without success. 

 

Any ideas?

 

12 REPLIES 12

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.