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 @PowerBITesting ,
The reason for this issue should be that you chose Count(Distinct). If you choose Count, the result will be correct. Count(Distinct) only counts the number of different values in a column. Because you put Date Group in both Columns and Values in the matrix, it is 1/2017 to calculate the number of 1/2017. Obviously, it is 1. Similarly, the 8/2020 column calculates the number of 8/2020 and it is 1. Column subtotals is calculated as the number of 1/2017 and 8/2020, so it is 2.And Count counts the number of all values in a column.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PowerBITesting ,
The reason for this issue should be that you chose Count(Distinct). If you choose Count, the result will be correct. Count(Distinct) only counts the number of different values in a column. Because you put Date Group in both Columns and Values in the matrix, it is 1/2017 to calculate the number of 1/2017. Obviously, it is 1. Similarly, the 8/2020 column calculates the number of 8/2020 and it is 1. Column subtotals is calculated as the number of 1/2017 and 8/2020, so it is 2.And Count counts the number of all values in a column.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@PowerBITesting - This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |