Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
19iv1987
Contributor III
Contributor III

P function with multiple fields

Hi, I need to keep fixed a calculation in a textbox for all filters except for three filters.

I already used P function but it seems not working with multiple fields.

Anyone can help me?

Thanks in advance

Eva

1 Solution

Accepted Solutions
sunny_talwar

Hahahaha yes

Sum({1<Field1 = $::Field1, Field2 = $::Field2, Field3 = $::Field3>}Measure)

View solution in original post

8 Replies
sunny_talwar

Try with $:: may be

Sum({<Field1 = $::Field1, Field2 = $::Field2, Field3 = $::Field3>}Measure)

Anil_Babu_Samineni

I would love to go (P) option, But unfortunately it won't

Other approach could be using {1}

Like(Added one on that, It will give constant value for you)

Count({1<Month = :: Month, Year = ::Year >}Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

Hi Eva,

Can you share the expression? What do you mean by keeping fixed? To not take in consideration the selection of the fields?

Have you tried:

sum({Customer=,Year=,Month=} Sales). this will give you the sales, no matter what Customer, Year, Month you select.

If this is the case, you can put in the set analysis the fields fixed with "=", except for three filters.

Best regards,

Cosmina

19iv1987
Contributor III
Contributor III
Author

Hi Sunny,

It seems not working, maybe it needs 1 somewhere..

sunny_talwar

Hahahaha yes

Sum({1<Field1 = $::Field1, Field2 = $::Field2, Field3 = $::Field3>}Measure)

19iv1987
Contributor III
Contributor III
Author

Sunny with 1 at the beginning it works!thanks a lot

19iv1987
Contributor III
Contributor III
Author

Hi Cosmina, thanks for the answer but I have to much fields to lock so your method it's quite expensive for me

sunny_talwar

Super cool