Forum Discussion
mohan_g_das1986
4 years agoHelper III
How show difference in Distinct Count
Hi, I have a measure for distinct partners using Partner id from my partner's table for 2 days (6/1/2022 and 6/2/2022) # of partners = distinctcount(Partner id) Used another column to show the ...
sturlaws
4 years agoResident Rockstar
Hi,
I suspect you have not shared all your requirements, I guess your end users want to filter on period, and see the change over that period. It will depend on your modell, but given your description, I have created a mockup report, and created this measure
Measure =
VAR _minDate =
MIN ( 'Table'[date] )
VAR _maxDate =
MAX ( 'Table'[date] )
VAR _minDateValue =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( ALL ( 'Table'[date] ), 'Table'[date] = _minDate )
)
VAR _maxDateValue =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( ALL ( 'Table'[date] ), 'Table'[date] = _maxDate )
)
RETURN
IF (
HASONEVALUE ( 'Table'[date] ),
COUNTROWS ( 'Table' ),
_maxDateValue - _minDateValue
)
which will show the difference in the total column, and rename the total label to difference:
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.