Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

How to get the name of the user that has the biggest value

Hi,

I'm new to Power Bi desktop, so sorry if this is a stupid question.

I'm working on a project where i have a list of of calls made by various users, each call spends a little bit of data (DUR CHAM (Gb)). I already have a way to see the biggest ammount of data spent by a user, but now i would like to obtain the name of said user not the amount.

I will send attached some images that might help understand my problem.

English is not my first language, sorry for any grammatical errors.

Thanks for the help.

 

1) the biggest image is the model of my project.

2)the measure Top Spender (Gb) is what I used to calculate the most amount of data spent by one user

3) the Top spender Name is my attempt at getting the name of the user who spent the most data

4)thge last image is an helper function to calculate the amount of data each user spended.


ModelModelmeasure used to calculate the most data spent by a single usermeasure used to calculate the most data spent by a single usermy attempt at getting the name of the usermy attempt at getting the name of the usermeasure to calculate how much data each user spentmeasure to calculate how much data each user spent

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

I created some data:

vyangliumsft_0-1660639088408.png

Here are the steps you can follow:

1. Create measure.

DUR CHAN =
SUMX(FILTER(ALL('Table'),
'Table'[User]=MAX('Table'[User])),[Amount])
Top spender(GD) =
MAXX(ALL('Table'),[DUR CHAN])
Top Spender =
MAXX(FILTER(ALL('Table'),
[DUR CHAN]=[Top spender(GD)]),[User])

2. Result:

vyangliumsft_1-1660639088409.png

 

Best Regards,

Liu Yang

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

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

I created some data:

vyangliumsft_0-1660639088408.png

Here are the steps you can follow:

1. Create measure.

DUR CHAN =
SUMX(FILTER(ALL('Table'),
'Table'[User]=MAX('Table'[User])),[Amount])
Top spender(GD) =
MAXX(ALL('Table'),[DUR CHAN])
Top Spender =
MAXX(FILTER(ALL('Table'),
[DUR CHAN]=[Top spender(GD)]),[User])

2. Result:

vyangliumsft_1-1660639088409.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.