Hi, I have a question, can I use CountIf, if I want to check if there is a value specified for this record in another column?
For example:
CountIf(Shortages.Item, 'Production Line'.Text = "A")
Production Line is a column like Item in Table named Shortages
Solved! Go to Solution.
@Piter_D ,
Yes ... The formula is quite good, but is a little bit slow for large data sources, as Countif() function iterate through entire data sources checking the formula.
CountIf(Shortages, 'Production Line'.Text = "A")>0
For better results, use:
IsBlank(LookUp(Shortages, 'Production Line' = "A"))
The result will be true if there is no record in Shortages table with condition fulfilled.
Hope it helps !
It's going to depend on where you are trying to put this formula. Is this a selected item in a gallery?
In text label
You indicated that this is for the current record. How are you telling the text label that you have a record selected? Is the label in a gallery or table for the current record?
In the gallery
@Piter_D ,
Yes ... The formula is quite good, but is a little bit slow for large data sources, as Countif() function iterate through entire data sources checking the formula.
CountIf(Shortages, 'Production Line'.Text = "A")>0
For better results, use:
IsBlank(LookUp(Shortages, 'Production Line' = "A"))
The result will be true if there is no record in Shortages table with condition fulfilled.
Hope it helps !
To build on what @gabibalaban said, if you just need to see if the production line column for the selected record is blank.
IsBlank(ThisItem.'Production Line')
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 |
---|---|
200 | |
47 | |
45 | |
45 | |
39 |
User | Count |
---|---|
279 | |
81 | |
81 | |
80 | |
67 |