cancel
Showing results for 
Search instead for 
Did you mean: 

Count function in Universe Designer?

Former Member
0 Kudos

Hi Experts,

I have below table and from there i need to calculate count against two dimensions. I need to calculate count of Meas group by Ver.

VerMeasCount
V1V1.12
V1.22
V2V2.13
V2.23
V2.33
V3V3.11

I tried count(DISTINCT @Select(Mol Objective Kpi Data2\Meas))  but its give below result. 

VerMeasCount
V1V1.11
V1.21
V2V2.11
V2.21
V2.31
V3V3.11

Please let me know which My SQL expression should i get for correct result.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member207052
Active Contributor
0 Kudos

Hi Sudharshan,

  1. Create a Derived table with the definition as shown in the below screenshot 1 (also make a join as shown)
  2. You can now use the "MeasureCount" variable to get the desired results (screenshot 2)

Former Member
0 Kudos

Thanks Narasimhan, Its Amazing.

Answers (2)

Answers (2)

Former Member
0 Kudos

On universe create measure object like

count_meas = count(meas)

Now In report level create separate query & drag object

Ver & count_meas (Query1)

I am assuming that in one of the query on webi you are fetching data for

ver , means (Query2)

Now on report level merge Ver object from both the queries & drag

merged Ver object , means (from query2) and count_meas (From query1)

I hope this will help you.

Thanks,

Swapnil

amitrathi239
Active Contributor
0 Kudos

Hi,

I am not very sure how can you do in designer but in webi its easy.

=Count([Meas]) In ([Ver])

Amit

Former Member
0 Kudos

Hi Amit,

Yeah, but we are developing some dashboards in Design Studio using Universe. So we are trying to implement in Universe.

lets see if others might have some idea on this.

Thanks