web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Datatable column with ...
Power Apps
Unanswered

Datatable column with formula not getting refreshed

(0) ShareShare
ReportReport
Posted on by 31

Hi,

I got a strange case where power apps doesn't want to refresh my column.

For context, I got a datatable that is displaying some columns from a dataverse table.

 

The dataverse table got 2 fields (There's more, but they aren't relevant):

- "Statut Document" of type Choice (Statut Facture)

- "Display Status" of type Yes/No.

 

On powerapps's side, I got a column to display "Status Document". If "Display Status" is true, then it should return the value of the column "Status Document", if not, it should return a preset value of the "Statut Facture" choice

So I put this formula in the Text property:

 

If(ThisItem.'Display Status', ThisItem.'Statut Document', 'Status Facture'.Envoyé)

 

 

The only problem is that when "Display Status" or "Status Document" change in dataverse, it doesn't reflect the changes, even when using Refresh() on the table, while other columns do update normally

The following formula does update:

 

If(ThisItem.'Display Status', "Yes", "No")

 

 

Any help on this? Feel free to request for more info

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @OmegaPhi115 ,

     

    I suspect that it's caused by the different data types between ThisItem.'Statut Document' and 'Status Facture'.Envoyé in this If statement. So, please try below instead:

    Switch(
     ThisItem.'Display Status', 
     true,
     ThisItem.'Statut Document',
     false,
     'Status Facture'.Envoyé
    )

     

    Best regards,

  • OmegaPhi115 Profile Picture
    31 on at

    That could be it, but it doesn't want me to use a boolean as a switch case: "Invalid argument type (Boolean). Expecting a OptionSetValue value instead".

    Is there a way to convert ThisItem.'Display Status' to an actual boolean? Boolean(ThisItem.'Display Status') doesn't work

     

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @OmegaPhi115 

     

    I know the problem now. I have missed it's a Y/N column. Try below formula:

    If(
     ThisItem.'Display Status'='Display Status'(TableName).Yes,
     ThisItem.'Statut Document'.Value,
     'Status Facture'.Envoyé
    )

     

    You can learn more details about Y/N column of Dataverse:

    How to work with Yes/No columns in Dataverse | Hardit Bhatia: The Power Addict

     

    Best regards,

  • OmegaPhi115 Profile Picture
    31 on at

    ThisItem.'Statut Document'.Value isn't recognized. But even if I remove the .Value, still no updating. Even if I use a switch.
    Replacing the displayed value by "Yes" and "No" shows that it also doesn't update upon change of 'Display Status'.

     

    One thing that might be relevant, is that it's possible for both 'Statut Document' and 'Display Status' to get changed after refreshing.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @OmegaPhi115 ,

     

    Could you please provide a screenshot that shows related UI controls, so I can understand the scenario more clearly?

     

    Best regards,

  • OmegaPhi115 Profile Picture
    31 on at

    Here's the UI

    OmegaPhi115_0-1666085511964.png

    The table is based on the Dataverse table "Factures", which is the table that contain "Statut Document" and "Display Status", and filtered on the user's ID stored in a global variable.

     

    The reload icon got onSelect set to "Refresh(Factures);" to refresh the table

    "Deconnection" and "Ajouter une facture" are navigation buttons and are only used to navigate to other screens

     

    The "Statut Document" column is the one that doesn't change when updated. Its Text property is the formula that we are discussing

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard