Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
stekol61
Creator
Creator

Add calculated dimension

Hi!

I have created a simple table and added a measure with this calculation:

If (wor_AssignmentProfile ='Eltel - FS - SE - B2B' and wor_AssignmentProfile ='Ericsson - FS - SE - B2B',Sum([Eltel SWE])-Sum([Transtema]))

If I include the dimension (wor_AssignmentProfile ) in the table the result is OK.

Excluding the dimension in the table the result is not OK.

I don't want to use the dimension in the table. Can this be handled in the calculation or in some other way?

 

 

11 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III

Can you not hide the dimension in the presentation tab? or do you not want it there at all?
agigliotti
Partner - Champion
Partner - Champion

how is your table (dimensions and measures) and what is your actual and desired output?
stekol61
Creator
Creator
Author

Hi!

My table look like the enclosed picture.

The expression in my example is for the 'Cost' measure.

The dimension used is 'wor_AssignmentProfile'

Using the dimension in the table the calculation for 'Cost' is OK. Without the dimension the calculation is not OK.

I don't want to use the dimension in the table but i want the calculation for 'Cost' to be correct

agigliotti
Partner - Champion
Partner - Champion

how does the measure "Cost" looks like?
stekol61
Creator
Creator
Author

Like this

f (wor_AssignmentProfile ='Eltel - FS - SE - B2B' and wor_AssignmentProfile ='Ericsson - FS - SE - B2B',Sum([Eltel SWE])-Sum([Transtema]))

agigliotti
Partner - Champion
Partner - Champion

let's try with the below expression:
sum( Aggr( if (wor_AssignmentProfile ='Eltel - FS - SE - B2B' and wor_AssignmentProfile ='Ericsson - FS - SE - B2B',Sum([Eltel SWE])-Sum([Transtema])), Dim, wor_AssignmentProfile ) )
stekol61
Creator
Creator
Author

Hi!

It doesn't work.

If I select both 'Eltel - FS - SE - B2B'  and'Ericsson - FS - SE - B2B' the Cost will be '0'.

Even if I select just one them the result is *0*

 

albert_guito
Creator II
Creator II

Hi,

It seems an intersection of set analysis.

Try with this:

Sum({<wor_AssignmentProfile ={'Eltel - FS - SE - B2B'}>+<wor_AssignmentProfile ={'Ericsson - FS - SE - B2B'}>} (Eltel SWE]-[Transtema])

Albert

Ag+
stekol61
Creator
Creator
Author

Hi!

This expression doesn't work at all.

I receive *Error in expression' when I try to add it to the table.