Skip to main content
Announcements
See why Qlik was named a Leader in the 2025 Gartner® Magic Quadrant™ for Augmented Data Quality Solutions: GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Tommmy
Contributor III

create master item dimension

Hi expert

Need to build some master items with restrictions on two dimensions. Is this possible. The following script is a sample for this challenge:

if(Account={'9900', '9901'} and CostCenter={'10', '20'}, 'ABCDE')

Any ideas?

Thanks, Tom

Labels (4)
2 Solutions

Accepted Solutions
Tommmy
Contributor III
Author

solved:

=if(Account=('9900') or Account=('9901'), if(CostCenter='10' or CostCenter='20', 'ABCDE'))

View solution in original post

kaushiknsolanki
Partner Ambassador/MVP

You can also try to use functions like Wildmatch and match like below to simplify your expression.

if(match(Account,9900,9901) and  match(Costcenter,10,20),'ABCD')

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP

Yes, you can create a calculated dimension and make it a master dimension. Its possible to use the same function you have written

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Tommmy
Contributor III
Author

Thanks, but with this formula I am getting an error:

Tommmy_0-1660894907791.png

 

Tommmy
Contributor III
Author

solved:

=if(Account=('9900') or Account=('9901'), if(CostCenter='10' or CostCenter='20', 'ABCDE'))

kaushiknsolanki
Partner Ambassador/MVP

You can also try to use functions like Wildmatch and match like below to simplify your expression.

if(match(Account,9900,9901) and  match(Costcenter,10,20),'ABCD')

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!