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.
Dear friends
how can i count a number of work individual by day in table 2
Table1
date | name | work |
01-01-20 | jim | drive |
01-01-20 | jim | cut |
01-01-20 | jim | eat |
02-01-20 | mark | cut |
02-01-20 | mark | drive |
01-01-20 | ron | cut |
01-01-20 | ron | jump |
Table2
date | name | work | drive | cut | eat | jump |
01-01-20 | jim | |||||
02-01-20 | mark | |||||
01-01-20 | ron |
thank you
Solved! Go to Solution.
Hi @Anonymous
amitchandak 's reply has shown you the way to achieve your goal.
In addition to amitchandak's reply. I build a table like yours to have a test.
Firstly duplicate the table.
Then we use group by to count quantities to each name.
Merge this table and the new table.
Add an conditional column in this table.
Then we select work column and use pivot.
Result:
You can download the pbix file from this link: lookup value with condition from other sheet
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Rico Zhou
@v-rzhou-msft thank you so much for your advice, i have find another solution that less treat to do but i will kept your solution as second chance so very grateful for your help : )
Hi @Anonymous
amitchandak 's reply has shown you the way to achieve your goal.
In addition to amitchandak's reply. I build a table like yours to have a test.
Firstly duplicate the table.
Then we use group by to count quantities to each name.
Merge this table and the new table.
Add an conditional column in this table.
Then we select work column and use pivot.
Result:
You can download the pbix file from this link: lookup value with condition from other sheet
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Take a count(Table[work])
and put in a matrix with row date and name and work as column work and measure as count(Table[work])
or pivot in power query
https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |