Explore Courses Blog Tutorials Interview Questions
0 votes
in BI by (17.6k points)

Can we use loop functions(for, while,do-while) in tableau calculated Fields? If we can, how can we use these functions in calculated fields and how can we initialize the variables which are declared in these functions?

1 Answer

0 votes
by (47.2k points)
  • No, we can't use the loop function in Tableau. There are few alternatives to do some calculations like that, using PREVIOUS_VALUE and other table calculations, but there are no loop functions in Tableau.

  • Because Tableau is not meant to be a data processing tool, rather than a data visualization tool. It means, Tableau engine is very good to process data, but only to perform "query-like" operations.

That’s all for now. But, if you would like to learn more about Tableau, check this Tableau Certification course by Intellipaat. 

Related questions

0 votes
1 answer
asked Feb 12, 2021 in BI by RohitSingh (2.5k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 4, 2019 in BI by Vaibhav Ameta (17.6k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories