I am extracing a number from a text string and need to convert it to integer so that I can compare it in a filter. It appears as though @int is the way to go but I am having trouble figuring out how to format. Here is what the filter looks like before it's casted:
Filter(dailySales,Mid(Retailer,9,1)=ThisItem.Result))
the number being extracted from the Retailer column is bewteen 1 and 6 and thisitem.result is definately a number because I have checked this.
Solved! Go to Solution.
Use the Value function to turn a string into a number. (PA makes no distinction betweeen doubles and integers). So if I understand your example:
Filter(dailySales,Value(Mid(Retailer,9.1))=ThisItem.Result))
Use the Value function to turn a string into a number. (PA makes no distinction betweeen doubles and integers). So if I understand your example:
Filter(dailySales,Value(Mid(Retailer,9.1))=ThisItem.Result))
actually figured that out on my own, but yes value worked...thanks
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
192 | |
45 | |
43 | |
38 | |
35 |
User | Count |
---|---|
262 | |
83 | |
81 | |
70 | |
69 |