I have a question about sum and group by.
I have read some post but solution dont works with my exemple.
I have a table with this datas
|User||Manager||Real Working hours||Theorical Working hours|
|Paul Simon||Joe Santana||87||80|
|Eric Clapton||Joe Santana||74||80|
|Freddy Mercury||Joe cocker||69||80|
|Elton John||Joe cocker||54||80|
And i want some measures of column who can show me :
|Manager||Number of users||Real working hours||Theorical Working hours|
I know for a lot of you it's easy but i can"t find.
I can do with filters in PBI and visualisation but it's not easy because i make a measure for 1 manager.
Thank you a lot in advance for your help.
Solved! Go to Solution.
I'm wondering if a "simple" table visual is sufficient for your use case, but what you are looking for can be achieved easily (as far as I understand your requirement):
Here is a little screenshot:
You just have to change the aggregation function to count for the User column.
Maybe this is already what you are looking for, if this is not the case, please describe why you need a measure in more detail.
Thank you for your response.
It help me, i have also find this solution but why I need measure or column.
To know the values of the column theorical working days, I need the number of user.
Total Theorical working hours = number of user * 25200
To know the account of users per manager
Then with measure or column, i dont know what's the best way, I can calculate the total of the "real working hours "
The finality of this, it's not the table visualisation but to show me, in différent team, if the guys encode time or not and what's the attendees.
So, basically it's always a good idea to create a measure instead of a calculated column, the advantages are
there is one disadvantage of a measure
Here is a simple example for a measure that counts the user
User cnt = DISTINCTCOUNT( 'Table1'[User] )
Maybe this gets you started.
This is a must watch for a message from Power BI!
Click here to read more about the December 2020 Updates!
Click here to read the latest blog and learn more about contributing to the Power BI blog!
Mark your calendars and join us for our next Power BI Dev Camp!.