Skip to main content
Question

Hide Section Based on Count of Details

  • Nov 5, 2024 7:36 AM UTC
  • 4 replies
  • 58 views
  • Translate All

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+11
  • Captain II
  • Nov 5, 2024 10:00 AM UTC

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

Translate

Forum|alt.badge.img+11
  • Captain II
  • Nov 5, 2024 10:01 AM UTC

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

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Nov 6, 2024 12:30 AM UTC

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

Translate

Forum|alt.badge.img+11
  • Captain II
  • Nov 6, 2024 8:01 AM UTC

You will want to use something like this:

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

Translate