Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ghaliabed
Partner - Creator
Partner - Creator

Semi Additive Measure as a Master Measure

Hello

I am trying to figure out how to work with semi additive measures.

Have requirement to track the Number of Employees per entity and team over time.

I have in my data down to the level of the Employee and if they are present will be flagged

Sample Data:

YEARQuarterYEARMONTHENTITYTEAMEMPLOYEEEMPLOYEECOUNT
20191201901ADEVJOE1
20191201902ADEVJOE1
20191201903ADEVJOE1
20192201904ADEVJOE1
20192201905ADEVJOE1
20191201901ADEVMIKE1
20191201902ADEVMIKE1
20191201903ADEVMIKE1
20192201905ADEVMIKE1
20191201901AQASAM1
20191201902AQASAM1
20191201903AQASAM1
20192201904AQASAM1

 

I want to have a master measure where users can create pivot tables and charts and be able to correctly see the latest Number of Present Employees based on their chosen dimensions.

Now if a user is always grouping the Sum(EmployeeCount) at the YEARMONTH level, they will get the correct value.

Ex: Pivot Table By Entity over YEARMONTH will give results like this

Semi_Additive.PNG

 

However, if user is doing any grouping without the YEARMONTH they will get incorrect results.

Ex: Pivot Table By Entity and Team over Quarters

 

ghaliabed_0-1587986656551.png

 

The values here are wrong at Quarter level, where the correct values should be:

Q1: Show 3 instead of 9

Q2: Show 2 instead of 4

 

 

Is there a way to do this as a set expression and make it as a Master Measure?

3 Replies
ghaliabed
Partner - Creator
Partner - Creator
Author

any ideas on this ?

 

Saravanan_Desingh

Are you looking something like this?

commQV60.PNG

ghaliabed
Partner - Creator
Partner - Creator
Author

Not exactly no.

If we remove the Month 201905 from pivot table, the Total for the DEV would still be 2.

But the correct value should actually be 1, since that is the value found in the Last available month