Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
rainchong-7401
Frequent Visitor

Distinct Count Grand Total is Incorrect

Dear Friends,
I would like to need your help.
Grand total is showing 18 
But when I export data to excel it's more than 18
My measure: 

DISC_ADDRESS =
DISTINCTCOUNT(BTM_WMSSHIPMANIFESTLNE[DELIVERYADDRESS])

rainchong7401_0-1635134140082.png


When I try this other way of doing distinct count also incorrect 

 

TEST_DISTINCT =
VAR T = SUMMARIZE(BTM_WMSSHIPMANIFESTLNE,BTM_WMSSHIPMANIFESTLNE[SHIPMENTDATE],"DISCADDRESS",DISTINCTCOUNT(BTM_WMSSHIPMANIFESTLNE[DELIVERYADDRESS]))
RETURN
SUMX(T,[DISC_ADDRESS])

rainchong7401_0-1635135278688.png

 

Kindly help me ASAP!!!!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rainchong-7401 , This will depend of the group by used in visual

 

Try like

 

TEST_DISTINCT =
VAR T = SUMMARIZE(BTM_WMSSHIPMANIFESTLNE,BTM_WMSSHIPMANIFESTLNE[SHIPMENT ID],BTM_WMSSHIPMANIFESTLNE[DELIVERYADDRESS])
RETURN
Countx(T,[DELIVERYADDRESS])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@rainchong-7401 , This will depend of the group by used in visual

 

Try like

 

TEST_DISTINCT =
VAR T = SUMMARIZE(BTM_WMSSHIPMANIFESTLNE,BTM_WMSSHIPMANIFESTLNE[SHIPMENT ID],BTM_WMSSHIPMANIFESTLNE[DELIVERYADDRESS])
RETURN
Countx(T,[DELIVERYADDRESS])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors