We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello
Hope you can help me. The first two columns below are my data. Each client manager as a minimum capacity of clients. I need to aggregate the total by client manager but the way I have the data the value repeats in several rows. This is because the data comes from the system. so when I try to sum the totals power BI sums the total but what I need is a unique value by client manager and then do the total. Any advice in how I can do that?
Client Manager | Min capacity of Clients | Power BI total | What I need is the unique value by client manager |
Anna | 30 |
|
|
Anna | 30 |
|
|
Anna | 30 | 90 | 30 |
Paul | 50 |
|
|
Paul | 50 |
|
|
Paul | 50 |
|
|
Paul | 50 |
|
|
Paul | 50 | 250 | 50 |
Siliva | 45 |
|
|
Siliva | 45 | 90 | 45 |
|
| 430 | 125 |
Solved! Go to Solution.
Hey @Anonymous ,
first I recommend to remove duplicate rows using Power Query.
If this is not possible, then the below measure creates what you are looking for:
Measure =
SUMX(
VALUES( 'Table'[Client Manager] )
, CALCULATE( AVERAGE('Table'[Min capacity of Clients] ) )
)
And a table visual:
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @Anonymous ,
select the measure in the fields list and adjust the formatting:
Hopefully, this provides what you are looking for.
Regards,
Tom
@TomMartens can I please ask you an easy one. How do I take out the decimals. I need only the value. I do appreciate your help!!! 😁
Hey @Anonymous ,
select the measure in the fields list and adjust the formatting:
Hopefully, this provides what you are looking for.
Regards,
Tom
Many thanks Tom!! It worked 😁
Hey @Anonymous ,
first I recommend to remove duplicate rows using Power Query.
If this is not possible, then the below measure creates what you are looking for:
Measure =
SUMX(
VALUES( 'Table'[Client Manager] )
, CALCULATE( AVERAGE('Table'[Min capacity of Clients] ) )
)
And a table visual:
Hopefully, this provides what you are looking for.
Regards,
Tom
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |