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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Count distinct shows wrong grand value

Hi,

Im going through a scenario which has 21 wrows in a matrix table but showing grand total as 24.,

Mishelle_0-1620359633195.png

 

My measure is,

Deals =
CALCULATE (
DISTINCTCOUNT( vw_as_Deals[accountid] ),
FILTER (
new_datavalidation,
new_datavalidation[statecode_displayname] = "Completed"
&& new_datavalidation[new_checkinguser] <> BLANK ()
&& new_datavalidation[new_checkingdate] <= MAX ( vw_as_Deals[Date] )
),
FILTER ( vw_as_Deals, vw_as_Deals[Date] >= MIN( DateTable[Date] )
))
 
Can someone please help on this
 
Thanks
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like.  Change the table name of Deals as per need

Deals =
sumx(values(vw_as_Deals[Deals]) ,
CALCULATE (
DISTINCTCOUNT( vw_as_Deals[accountid] ),
FILTER (
new_datavalidation,
new_datavalidation[statecode_displayname] = "Completed"
&& new_datavalidation[new_checkinguser] <> BLANK ()
&& new_datavalidation[new_checkingdate] <= MAX ( vw_as_Deals[Date] )
),
FILTER ( vw_as_Deals, vw_as_Deals[Date] >= MIN( DateTable[Date] )
)))

Anonymous
Not applicable

@amitchandak 

Thanks for the help. But counts are not correct with this measure.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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