Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

Maintain values according to selection

Hi.

I currently have a table that displays the "HAS INSUMOS" by "VARIEDAD".

Ejm: The VARIEDAD AL has as HA INSUMOS 54.26.

Captura.PNG

I display that variety and it shows me the HA INSUMOS by "LOT".

I do not want to visualize that, I need to see the HA INSUMOS by VARIEDAD when I display the table that I already did using the TOTAL.

Captura.PNG

Captura.PNG

The same for the MATERIAL level.

Captura.PNG

The next step is that these values have to be maintained when I do any filter, but I can not think of a logic for that.

when I filter a batch it changes its value.

Ejm VARIEDAD AL has as HA INSUMOS 54.26 HA, but when filter a LOTE changes value.

Captura.PNG

Please help me with that topic.

I attach the qvw.

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
1 Solution

Accepted Solutions
sunny_talwar

Try this

If(WildMatch(Dimensionality(),0,1,2),


Sum({<VARIEDAD., COD_LOTE.>} TOTAL <VARIEDAD.> Aggr(

sum( DISTINCT

{<CONCEPTO = {'INSUMOS Y MATERIALES'}, BLOQ = {'NULL'}, DÍA, VARIEDAD., COD_LOTE.>}HECTAREA_PRODUCTIVA),VARIEDAD.,COD_LOTE.))

,


Sum({<VARIEDAD., COD_LOTE.>} DISTINCT TOTAL <VARIEDAD.> Aggr(

sum( DISTINCT

{<CONCEPTO = {'INSUMOS Y MATERIALES'},BLOQ = {'NULL'},DÍA, VARIEDAD., COD_LOTE.>}HECTAREA_PRODUCTIVA),VARIEDAD.,COD_LOTE.,MATERIAL))

) * Avg({<CONCEPTO = {'INSUMOS Y MATERIALES'},BLOQ = {'NULL'},DÍA>} 1)


Capture.PNG

View solution in original post

8 Replies
sunny_talwar

Your qvw seems to be protected with section access... but try this

If(WildMatch(Dimensionality(), 0, 1, 2),

Sum({<VARIEDAD., COD_LOTE.>} TOTAL <VARIEDAD.> Aggr(....

...

)

* Avg(1)

cristianj23a
Partner - Creator III
Partner - Creator III
Author

Hi Sunny.

I attach the updated qvw.

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
cristianj23a
Partner - Creator III
Partner - Creator III
Author

Use the code but it does not come out as required.

Sum({<VARIEDAD., COD_LOTE.>} TOTAL <VARIEDAD.> Aggr(sum( DISTINCT

{<CONCEPTO={'INSUMOS Y MATERIALES'},BLOQ={'NULL'},DÍA=>}HECTAREA_PRODUCTIVA)

,VARIEDAD., COD_LOTE.)

)* Avg(1)

For VARIEDAD AL should show 54.26 when I filter any LOTE but it is not.

Ejm: If I filter LOTE G06 5.50 appears.

Captura.PNG

Captura.PNG

regards.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
sunny_talwar

Still can't open it because of section access

Anil_Babu_Samineni

Try this for a time being?

Sum({<VARIEDAD., COD_LOTE.>} TOTAL <VARIEDAD.> Aggr(sum( DISTINCT

{<CONCEPTO={'INSUMOS Y MATERIALES'},BLOQ={'NULL'},DÍA=, COD_LOTE.>}HECTAREA_PRODUCTIVA)

,VARIEDAD., COD_LOTE.))* Avg({<COD_LOTE., CONCEPTO={'INSUMOS Y MATERIALES'},BLOQ={'NULL'},DÍA=, VARIEDAD.>}1)

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
cristianj23a
Partner - Creator III
Partner - Creator III
Author

Sorry, the Access Section is already disabled.

Good day.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
sunny_talwar

Try this

If(WildMatch(Dimensionality(),0,1,2),


Sum({<VARIEDAD., COD_LOTE.>} TOTAL <VARIEDAD.> Aggr(

sum( DISTINCT

{<CONCEPTO = {'INSUMOS Y MATERIALES'}, BLOQ = {'NULL'}, DÍA, VARIEDAD., COD_LOTE.>}HECTAREA_PRODUCTIVA),VARIEDAD.,COD_LOTE.))

,


Sum({<VARIEDAD., COD_LOTE.>} DISTINCT TOTAL <VARIEDAD.> Aggr(

sum( DISTINCT

{<CONCEPTO = {'INSUMOS Y MATERIALES'},BLOQ = {'NULL'},DÍA, VARIEDAD., COD_LOTE.>}HECTAREA_PRODUCTIVA),VARIEDAD.,COD_LOTE.,MATERIAL))

) * Avg({<CONCEPTO = {'INSUMOS Y MATERIALES'},BLOQ = {'NULL'},DÍA>} 1)


Capture.PNG

cristianj23a
Partner - Creator III
Partner - Creator III
Author

thank you.

Use is code and it worked for me.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.