cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Niiru1
Helper IV
Helper IV

Divide measure by distinct count

I currently have a measure for a pareto chart:

 

Cumul Events =
VAR thisdate =
MAX ( 'Enhanced line list'[Event Date] )
RETURN
CALCULATE (
[Count],
ALL ( 'Enhanced line list'[Event Date] ),
'Enhanced line list'[Event Date] <= thisdate
)
 

however I was hoping to get this in % form i.e. rather than a range of 1-1200 for example is it possible to get this as a 0-100% range?

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Niiru1 , Try like

 Cumul Events =
VAR thisdate =
MAX ( 'Enhanced line list'[Event Date] )
RETURN
divide( 
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'[Event Date] ),
	'Enhanced line list'[Event Date] <= thisdate
	) ,
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'[Event Date] )
	)
)

or

 Cumul Events =
VAR thisdate =
MAX ( 'Enhanced line list'[Event Date] )
RETURN
divide( 
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'),
	'Enhanced line list'[Event Date] <= thisdate
	) ,
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list' )
	)
)


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@Niiru1 , Try like

 Cumul Events =
VAR thisdate =
MAX ( 'Enhanced line list'[Event Date] )
RETURN
divide( 
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'[Event Date] ),
	'Enhanced line list'[Event Date] <= thisdate
	) ,
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'[Event Date] )
	)
)

or

 Cumul Events =
VAR thisdate =
MAX ( 'Enhanced line list'[Event Date] )
RETURN
divide( 
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list'),
	'Enhanced line list'[Event Date] <= thisdate
	) ,
	CALCULATE (
	[Count],
	ALL ( 'Enhanced line list' )
	)
)


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors