Solved! Go to Solution.
CountIf, or CountRows depending on your requirements, are probably what you're after.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-counts
Something like:
CountIf(tblFunction, logdates >= DatePick_1.SelectedDate && logdates <= DatePick_2.SelectedDate && Function ="BB")
Hope that helps.
Hadyn
You should be able to do either:
Text( Sum(tblFunction,
logdate > DatePick_1.SelectDate,
logdates < DatePick_2.SelectDate,
function = "BB"
) )
OR
Text( CountRows(
Filter(tblFunction,
logdate > DatePick_1.SelectDate,
logdates < DatePick_2.SelectDate,
function = "BB"
)
) )
You may want to make your boolean statement include equals, if you intend on considering dates that are equal as well.
CountIf, or CountRows depending on your requirements, are probably what you're after.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-counts
Something like:
CountIf(tblFunction, logdates >= DatePick_1.SelectedDate && logdates <= DatePick_2.SelectedDate && Function ="BB")
Hope that helps.
Hadyn
You should be able to do either:
Text( Sum(tblFunction,
logdate > DatePick_1.SelectDate,
logdates < DatePick_2.SelectDate,
function = "BB"
) )
OR
Text( CountRows(
Filter(tblFunction,
logdate > DatePick_1.SelectDate,
logdates < DatePick_2.SelectDate,
function = "BB"
)
) )
You may want to make your boolean statement include equals, if you intend on considering dates that are equal as well.
HI @dalacarelia_196,
Do you want to count the records that were in between the dates and contained “BB”?
I made a test .
I created a SP list named “test2”.
Set the Text property of label1 to:
CountIf(test2,Logdates>=DatePicker1.SelectedDate&&Logdates<=DatePicker2.SelectedDate&&Function="BB")
Also, you can Set the Text property of label1 to:
CountRows(Filter(test2,Logdates>=DatePicker1.SelectedDate,Logdates<=DatePicker2.SelectedDate,Function="BB"))
Regards,
eason
Jippeeee thanx
User | Count |
---|---|
122 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
140 | |
108 | |
83 |