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 September 15. Request your voucher.
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.
Model
measure used to calculate the most data spent by a single user
my attempt at getting the name of the user
measure to calculate how much data each user spent
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
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:
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
Hi @Anonymous ,
I created some data:
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:
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
User | Count |
---|---|
69 | |
65 | |
63 | |
55 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |