cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Petter120
Frequent Visitor

Division in gallery label is behaving strange

Hi i have this gallery and in the column Målu. im trying to calcualte the complience (Utfall / Plan) and the weird thing is

that not all columns are getting calculated.

 

Petter120_0-1618956288559.png

 

I use this formula in my text property 

Text((Value(txtUtfall.Text) / Value(Label5.Text))*100;"[$-sv-SE]#")

 

If i change the division to addition numbers will apear in all cells.

 

Thanks Petter

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User III
Super User III

Hi @Petter120 

There seems to be a pattern whereby any Plan value greater than 1,000 doesn't calculate correctly.

timl_0-1618960943699.png

When I look at your screenshot, it looks as though there may be a space between the 1,000 digit and the remaining numbers.

 

Text(
     (Value(txtUtfall.Text) / Value(Substitute(Label5.Text;" ";"")))*100;
     "[$-sv-SE]#"
)

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User III
Super User III

Hi @Petter120 ,

I think you have one bracket in the wrong place

Text(
   (
      Value(txtUtfall.Text) / Value(Label5.Text) *100
   );"[$-sv-SE]#"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

timl
Super User III
Super User III

Hi @Petter120 

There seems to be a pattern whereby any Plan value greater than 1,000 doesn't calculate correctly.

timl_0-1618960943699.png

When I look at your screenshot, it looks as though there may be a space between the 1,000 digit and the remaining numbers.

 

Text(
     (Value(txtUtfall.Text) / Value(Substitute(Label5.Text;" ";"")))*100;
     "[$-sv-SE]#"
)

 

View solution in original post

Petter120
Frequent Visitor

Ahh yes i have, now it works thank you 🙂

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (62,418)