Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Excel file with expressions

Hi,

I have an excel file with a lot of expressions, like:

Média:        avg(sales)

Soma:        sum(sales)

and so on..

The problem is when i Load the file, it does not bring the results.

Can anyone help me?

6 Replies
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

If you wanted to have the expression in excel as it is in qlikview, then do this

Data:
LOAD
Text(Sequencia) AS Sequencia,
    
Text(Descricao) AS Descricao,
    
Text(SubTotalAS Subtital
FROM
[sample.xlsx](
ooxml, embedded labels, table is Plan1);

But am guessing you want the expression to be calculated and resolved in qlikview?

jsakalis
Contributor III
Contributor III

Hi Diogo,

If I understand what you would like to do try the following:

1) Create a straight table and add the following calculated dimension:

     =ValueList('Saídas','Débitos','Estornos','003 ESTORNO DE CRÉDITOS (DISCRIMINAR ABAIXO')

2) Create a expression:

Pick(RowNo(),

$(=Only({1<Sequencia={1}>} SubTotal)),

$(=Only({1<Sequencia={2}>} SubTotal)),

$(=Only({1<Sequencia={3}>} SubTotal)),

$(=Only({1<Sequencia={4}>} SubTotal)))

Sorry I am not able to test this without the QVW. Hope this helps.

NickHoff
Specialist
Specialist

Before loading your spreadsheet copy and then paste the cells as values and not formulas.  Once you do this you'll have to create your expressions in the media you'd like to display them.  Which also means you won't need to have to load everyone of them just the core that makes up the expressions.

Not applicable
Author

Thanks for the answers guys, but the thing is:

When Qlikview load the row  agv(sales) it cames like a text and it does not solve in qlikview.

I wold like to have a graphic where i could see the average or sum of sales.

This would be very easy if this was a variable. Insted is a colum from a table.

NickHoff
Specialist
Specialist

Based on the data you provided the problem isn't very clear.  However, on your last statement "When Qlikview load the row  agv(sales) it cames like a text and it does not solve in qlikview."  It sounds like you are trying to load the data in a row, when Qlikview displays data in columns. 

It sounds like you are attempting to use Qlikview incorrectly by not utilizing dimensions and metrics (your expressions).  If you post your qvw it would be easier to help you or understand your problem.

awhitfield
Partner - Champion
Partner - Champion

Hi Diogo,

rather than trying to load them as expression, you need to load them first as variable, which can of course then be used as expressions. See the attached posting for further details:

https://community.qlik.com/thread/27883

Hope this helps,

Regards

Andy