Forum Discussion

mpros's avatar
mpros
Icon for Helper I rankHelper I
1 year ago
Solved

Measure not working in Service, working on Desktop - No errors

Dears,
how it's possibile that in desktop version the measure works fine, while in service (web app) does not?

 

Stdev(x) stoc = CALCULATE([Stdev], filter(ALLSELECTED(Accoda1[WeekNumSource]),Accoda1[WeekNumSource]<=max(Accoda1[WeekNumSource])),ALLSELECTED(Accoda1))

 



 



 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi mpros ,

    I really can't reproduce your problem.
    Can you try to delete and republish to Service, or publish to another workspace and then open it to see if the same problem exists?

    Best Regards,
    Dino Tao

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mpros ,

    Could you please check in Service what is the data type of the WeekNumSource column?

    In Power BI, in case of columns of numeric type, all the numbers in the matrix are rendered right-aligned. But in this screenshot of yours, here it is presented in a left-aligned manner, indicating that the column seems to be of text type.

    Best Regards,
    Dino Tao
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • mpros's avatar
      mpros
      Icon for Helper I rankHelper I

      Dear  v-junyant-msft,

       

      If I explore the entire dataset it interprets it as "Integer (?)", proposed summary is sum as you can see in the dataset, (although left-aligned) calculation executed.

       


      If I explore the single object  (inspecting the object, data explore) the result is that in interprest it as (Text?) as you suggested,  (even though proposed summary is still a sum) no calculation executed. 

       


      Anyways I don't explain why it shouldnt:
      -Calculate a value if it interprets it as text

      - How to solve the problem?

      Thanks and regards,
      Marco

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi mpros ,

        I really can't reproduce your problem.
        Can you try to delete and republish to Service, or publish to another workspace and then open it to see if the same problem exists?

        Best Regards,
        Dino Tao

    • mpros's avatar
      mpros
      Icon for Helper I rankHelper I

      Hi AnalyticPulse

      The semantic model is in import mode; if I explore the data inside PBI Service I get the measure to work correctly:

       

       

       

       

      Desktop version:

       

      It appears to me more like a bug/glitch.

      Regards