Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Formula not evaluated with import Data from Web Office 2019 and newer

Hello Everyone,

 

I'm encountering an issue using Import data from web since Office >= 2019

I have a web server that deliver some data as an HTML table as is:

 

ID_OFQTESTATUT_PHPHASEID_ARTIREF_ARTILIB_ARTICDC_LIBELLEFAMILLEPROCEDURE_PREM_ADATE_DEBUT_tdDUREE_RESTANTEMARGEJOURNEE_PASSAGEPRIORITEDATE_FIN_OFCYNAPS_TEXTE_TACHECOMMENTAIRESAGE_AU_POSTEMATIERES
6144141EC20.0058119D539 25408 000 01Voile Equipé=SIERREUR(RECHERCHEV("RIVETAGE SA";GROUPES;2;FAUX);"RIVETAGE SA")EDSSA02022/02/24021J992022/03/0401/02/22 08:1317/01/22 08:55 MANQUE 1 SUPPORT. VU AVEC JOSH. 56,87 
6013143D40.0083565U311A1101104FRAME=SIERREUR(RECHERCHEV("RETOUCHE PROTECTION SA";GROUPES;2;FAUX);"RETOUCHE PROTECTION SA")SMASA02021/10/04,56-122J992021/10/0625/01/22 09:48 sido partiel non dispo au poste 20,96 
61033550EC20.0085051FILM VENTOUSE PLATE ASSY GENERIQUEFILM VENTOUSE PLATE ASSY=SIERREUR(RECHERCHEV("Ligne support batterie SA";GROUPES;2;FAUX);"Ligne support batterie SA")FDNSA02021/09/08,17-148J992021/09/14Voir avec Joshua. 24/01/22 13,734744 - FILM DE PROTECTION - - Plat - Largeur : 1270 (MM) Epaisseur : 0.12 (MM) - FILM PIEUVRE ULTRA TRANSPARENT 1,27MX30M - APPRO PROPRE
61045780D20.0069530V251.11676.000.00BOLT ASSY=SIERREUR(RECHERCHEV("COLLAGE STRUCTURAL SA";GROUPES;2;FAUX);"COLLAGE STRUCTURAL SA")EDSSA02022/02/282,225S+4502022/03/04  22,89 
6092811D20.0024178S570.12154.000.00SUPPORT CARENAGE=SIERREUR(RECHERCHEV("Ligne Potences SA";GROUPES;2;FAUX);"Ligne Potences SA")SMASA02022/02/28,1325S+4502022/03/08  29,89 
6046939D20.0073527FJSA1-1C1100-01ENS CHARIOT MOBILE=SIERREUR(RECHERCHEV("Aménagement Cabine";GROUPES;2;FAUX);"Aménagement Cabine")JGDSA02022/03/033,828S+4502022/03/24  ,91 

 

With an Office 2016 or older:

When i use menu : Data >Get External Data > From web, there is a windows where you can enter an URL and it previsualize the data.

At the end the data are imported into Excel into a range. The columns that contains formulas are being evaluated and display the result of the formula without anymore actions. (Same when updating the source)

 

With an Office 2019 or newer :

When i use menu : Data > From Web , there is process where you enter the URL and you end up into Power Query.
At the end a new Sheet is created with a Table (and all the tools associated with a table, what is the purpose of using this method) and this table has an updatable datasource.

The issue is the columns containing an Excel Formula are displayed as fulltext un Excel, they are not being evaluated.

If i select a cell and press F2 and Enter, then the formula is being evaluated.

 

So how do i make Office 2019 and newer, to evaluate this cells when importing data from Refreshing the source.

Best regards

 

Christophe

10 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    It's not possible for Power BI to calculate the formula directly when importing data. I'd suggest you do the calculations firstly in Excel, and then in Power BI Desktop to Get data from Excel.

     

    Best Regards,
    Eyelyn Qin

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

       

      I believe the formula is not evaluated in Power Query but in Excel. 

      I feel it is just a matter of telling Excel to process this column as Formula and not as Text.

       

      I don't want to believe this isn't possible. 😞

       

      regards

  • From your description, I am guessing you were using the original import wizard in the older versions of Excel.

    You can enable it in current versions under File/Options/Data. For additional information, see:

    Data import and analysis options 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

       

      Thanks for answering, but i want to use Table option, with old wizard, it create a range not a table.

       

      So having a table give me access to all options a table have (look, autosize, etc ...)

       

      Regards

      • ronrsnfld's avatar
        ronrsnfld
        Icon for Super User rankSuper User

        I haven't played with the legacy wizard to advise you with regard to that. But you can always add the formula columns as custom columns within Power Query.  Or you could re-write your formulas to use table references to the table that PQ generates.  I believe the first option will be more stable.