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.
Hi,
I'm a beginner to PowerBI and appreciate some assistance/advice please.
I managed to compute the Excel data below to show in the following Matrix table in PowerBI.
However, I would like to output into the below table so that I can create a clustered column chart to view the type of vehicles (and the no. of times) that each person uses in each month.
I've tried to create a couple of measures with distinctcount but it just won't give the correct count.
Solved! Go to Solution.
Hi @Dante79,
After test with your data, I modify my formula to use distinct date count to calculate total use amount.
Usage Count = CALCULATE ( DISTINCTCOUNT ( cars[Date] ), ALLSELECTED ( cars ), VALUES ( cars[Name] ), VALUES ( cars[Type] ), VALUES ( cars[Date] ) )
Regards,
Xiaoxin Sheng
Hi @Dante79,
You can try to use below measure formula if it works for your requirement:
Count of Type = CALCULATE ( COUNT ( Table[Type] ), ALLSELECTED ( Table ), VALUES ( Table[Name] ), VALUES ( Table[Type] ), VALUES ( Table[Date] ) )
If above not help, please share some sample data or pbix file for test.
Regards,
Xiaoxin Sheng
Thanks.
But the measure produced an error 'Too many arguments were passed to the COUNT function. The maximum argument count for the function is 1.'
I've attached some sample data here
https://1drv.ms/f/s!ArkMmgaHDZU7lBnOZpnQvBgxATSl
Ok the measure went through successfully but it is still not giving the correct results in the chart.
For example, Vicky (September) should be showing as count=1 for Van.
Please help anyone ??
I've been spending hours just trying to figure this out. I'm sure it's a very basic thing for many but really struggling to get this to work. Appreciate any help or someone to point me towards a direction please !
Thanks !
Bump
Hi @Dante79,
After test with your data, I modify my formula to use distinct date count to calculate total use amount.
Usage Count = CALCULATE ( DISTINCTCOUNT ( cars[Date] ), ALLSELECTED ( cars ), VALUES ( cars[Name] ), VALUES ( cars[Type] ), VALUES ( cars[Date] ) )
Regards,
Xiaoxin Sheng
Great ! It works ! Thanks so much !!!
Any help is much appreciated ! 🙂
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 |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |