March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I don't know why I am having such a hard time with this, but in this picture, there are a count of 7 sales (counted in red). Where '13' is circled in red; I need that number to be 7. I have tried all differnt methods of fields on the rows, columns, and values. Anyone know a simple solution to this? Basically I am needing a matrix that just counts the amount of sales for each site. This one has seven, but I can't get it to count on the other column where '13' is.
Solved! Go to Solution.
Hi, @WuchaDoin
You can try the following methods.
Measure = IF(HASONEVALUE('Table'[ITEM]),COUNT('Table'[ITEM]),DISTINCTCOUNT('Table'[ITEM]))
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @WuchaDoin
You can try the following methods.
Measure = IF(HASONEVALUE('Table'[ITEM]),COUNT('Table'[ITEM]),DISTINCTCOUNT('Table'[ITEM]))
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so very much. I appreciate the help from everyone else, but this is exactly what I needed and now I can even study the line of code you used to better understand DAX at a simpiler level.
@WuchaDoin Ding ding ding! Yet another measure totals problem most likely.
Please vote for this idea: Microsoft Idea (powerbi.com)
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
This might help as well: Matrix Measure Total Triple Threat Rock & Roll - Microsoft Power BI Community
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |