Forum Discussion
gilles13600
3 years agoNew Member
statistics per tool per site
Hello, i would like to do a measure for the percentage of tool version that are in official version per site per tool i added a colum to get 1 if tool is official one and 0 if not and then i...
- 3 years ago
Hi, gilles13600
Please try formula like:
% = VAR a = CALCULATE ( DISTINCTCOUNT ( T_SOFT_REPOSITORY[Server] ), FILTER ( T_SOFT_REPOSITORY, T_SOFT_REPOSITORY[__LAST_Tool1_EQUAL_OFFICIAL_Tool1] = 1 && T_SOFT_REPOSITORY[Site] = "SITE1" ) ) VAR b = CALCULATE ( DISTINCTCOUNT ( T_SOFT_REPOSITORY[Server] ), FILTER ( T_SOFT_REPOSITORY, T_SOFT_REPOSITORY[Site] = "SITE1" ) ) RETURN a / bBest Regards,
Community Support Team _ Eason
v-easonf-msft
3 years agoCommunity Support
Hi, gilles13600
Please try formula like:
% =
VAR a =
CALCULATE (
DISTINCTCOUNT ( T_SOFT_REPOSITORY[Server] ),
FILTER (
T_SOFT_REPOSITORY,
T_SOFT_REPOSITORY[__LAST_Tool1_EQUAL_OFFICIAL_Tool1] = 1
&& T_SOFT_REPOSITORY[Site] = "SITE1"
)
)
VAR b =
CALCULATE (
DISTINCTCOUNT ( T_SOFT_REPOSITORY[Server] ),
FILTER ( T_SOFT_REPOSITORY, T_SOFT_REPOSITORY[Site] = "SITE1" )
)
RETURN
a / b
Best Regards,
Community Support Team _ Eason
gilles13600
3 years agoNew Member
thank you, i will try this !
gilles