Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi
I have a card visual.
The count function is doubling everything. Both via a measure and via the "aggregation" option where you choose sum, average, count etc.
I've checked the table. There are definitely only 481 rows when I filter with the exact same filters i'm using in the visual.
I've removed all relationships from the table and tried again, still getting doubled to 962.
Any ideas?
Solved! Go to Solution.
Hi
Apologies, my dataset had duplicate values under a different file source name - I was filtering on file source assuming they were the only ones containing the data I was analysing - there were other files that had the exact same data. Just another by-product of having to work around your IT team, rather than with them.
Hi
Apologies, my dataset had duplicate values under a different file source name - I was filtering on file source assuming they were the only ones containing the data I was analysing - there were other files that had the exact same data. Just another by-product of having to work around your IT team, rather than with them.
Hi @CountisBroken,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @Ray_Minds & @danextian for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
could you pls provide some sample data and expected output?
Proud to be a Super User!
Explanation:
The issue comes from how COUNT works in DAX and visuals:
Solution:
Use COUNTROWS instead of COUNT:
This counts the actual rows in the filtered table, so your card should display 481.
If you need unique values of a column, use: DISTINCTCOUNT
UniqueValue = DISTINCTCOUNT ( Table[Column] )
How to Validate
In the table view, does it also show only 481 rows? Adding fields to a table visual can remove duplicate rows, so it’s not always a direct comparison of the actual row count in the dataset. The COUNT function counts all rows in a column regardless of duplicates—try using DISTINCTCOUNT instead. If the issue persists, consider sharing a non-confidential copy of the PBIX file.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 33 | |
| 32 | |
| 31 |