Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello All - I have issue with a measure created to calculate count using SUMX function. My requirement is to calculate count of document #'s where type = "TP1". But the measure I created returns incorrect values. It seems to be multiplication of Count (Sum of Count where type = TP1) with total count (Count of Doc #). In additional I also need to calculate distinct count for doc #, CC and Year combination. Please help check this. I am also giving a link of PBIX file here. SUMX Count Issue.zip
Formula in the measure =
Thanks,
Phani
Solved! Go to Solution.
In additional I also need to calculate distinct count for doc #, CC and Year combination.
In additional I also need to calculate distinct count for doc #, CC and Year combination.
You can use a table visual for that
When you use the count inside the SUMX you are multiplying each row's filtered count with each row's unfiltered count.
If you need to use SUMX, use
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!