Skip to main content
Question

Hide Section Based on Count of Details

  • November 5, 2024
  • 4 replies
  • 36 views

Forum|alt.badge.img

Is this code correct? It currently hides the footer when the count exceeds 3. I tried using <= 5, but it still hides the output when the count is 3

 

this record data is only 4 but it hides the footer

 

4 replies

Forum|alt.badge.img+8
  • Captain II
  • November 5, 2024

Hi @jhoncandare04 

 

Have you tried just one IIF() statement?

 

i.e. IIF(Count[ARTran.InventoryID] < 5, True, False)

 

If you look closely at your second IIF statement, you are saying that if there are less than 5, you should hide the footer.

 

It is not too clear what you are trying to achieve too, could you please clarify?

 

Hope this helps.

Aleks


Forum|alt.badge.img+8
  • Captain II
  • November 5, 2024

Ignore my statement about the second IIF, i read the symbol wrong!


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 6, 2024

@aiwan i just want to hide the footer when it count the data is greater than or equal to 5


Forum|alt.badge.img+8
  • Captain II
  • November 6, 2024

You will want to use something like this:

IIF(Count[ARTran.InventoryID] >= 5, True, False)