web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / i have to call ResultJ...
Power Apps
Unanswered

i have to call ResultJanX in below onselect button property

(0) ShareShare
ReportReport
Posted on by 93
i have created the colTest onstart property of app:
ClearCollect(
    colTest,
    AddColumns(
        colObjectivesData,
        ResultJanX,"",
        ResultFebX,"",
        ResultMarX,"",
        ResultAprX,"",
        ResultMayX,"",
        ResultJunX,"",
        ResultJulX, "",
        ResultAugX, "",
        ResultSepX,"",
        ResultOctX,"",
        ResultNovX,"",
        ResultDecX,"",
        YTDJanX,"",
        YTDFebX,"",
        YTDMarX,"",
        YTDAprX,"",
        YTDMayX,"",
        YTDJunX,"",
        YTDJulX,"",
        YTDAugX,"",
        YTDSepX,"",
        YTDOctX,"",
        YTDNovX,"",
        YTDDecX,""
    )
);


and i have to call ResultJanX in below onselect button property.
If(
    CountRows(
        Filter(
            colRowMonthData,
            UnitType = 0
        )
    ) = 0,
    ForAll(
        colRowMonthData As Alpha,
        Patch(
            Objectives,
            LookUp(
                Objectives,
                'Objective ID' = Alpha.'Objective ID'
            ),
            {
                'Result jan': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultJan.Text),
                    Blank()
                ),
                'Result jan t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultJan.Text,
                    Blank()
                ),
                'YTD jan': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDJan.Text),
                    Blank()
                ),
                'YTD jan t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDJan.Text,
                    Blank()
                ),
                'Comment (itobj_jan_comment)': Alpha.ComJan.Text,
                Frequency: Alpha.Frequency,
                'Result feb': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.FebResult.Text),
                    Blank()
                ),
                'Result feb t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.FebResult.Text,
                    Blank()
                ),
                'YTD feb': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.FebYTD.Text),
                    Blank()
                ),
                'YTD feb t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.FebYTD.Text,
                    Blank()
                ),
                'Comment (itobj_feb_comment)': Alpha.FebComment.Text,
                'Result mar': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultMar.Text),
                    Blank()
                ),
                'Result mar t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultMar.Text,
                    Blank()
                ),
                'YTD mar': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDMar.Text),
                    Blank()
                ),
                'YTD mar t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDMar.Text,
                    Blank()
                ),
                'Comment (itobj_mar_comment)': Alpha.ComMar.Text,
                'Result apr': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultApr.Text),
                    Blank()
                ),
                'Result apr t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultApr.Text,
                    Blank()
                ),
                'YTD apr': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDApr.Text),
                    Blank()
                ),
                'YTD apr t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDApr.Text,
                    Blank()
                ),
                'Comment (itobj_apr_comment)': Alpha.ComApr.Text,
                'Result may': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultMay.Text),
                    Blank()
                ),
                'Result may t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultMay.Text,
                    Blank()
                ),
                'YTD may': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDMay.Text),
                    Blank()
                ),
                'YTD may t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDMay.Text,
                    Blank()
                ),
                'Comment (itobj_may_comment)': Alpha.ComMay.Text,
                'Result jun': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultJun.Text),
                    Blank()
                ),
                'Result jun t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultJun.Text,
                    Blank()
                ),
                'YTD jun': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDJun.Text),
                    Blank()
                ),
                'YTD jun t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDJun.Text,
                    Blank()
                ),
                'Comment (itobj_jun_comment)': Alpha.ComJun.Text,
                'Result jul': If(
                    Alpha.Unit <> Unit.text,
                    If(!IsBlank(Resul),ResultJulX,Value(Alpha.ResultJul.Text)),
                    Blank()
                ),
                'Result jul t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultJul.Text,
                    Blank()
                ),
                'YTD jul': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDJul.Text),
                    Blank()
                ),
                'YTD jul t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.YTDJul.Text,
                    Blank()
                ),
                'Comment (itobj_jul_comment)': Alpha.ComJul.Text,
                'Result aug': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultAug.Text),
                    Blank()
                ),
                'Result aug t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultAug.Text,
                    Blank()
                ),
                'YTD aug': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.YTDAug.Text),
                    Blank()
                ),
                'YTD aug t': If(
                    Alpha.Unit = Unit.text,
                    Alpha.ResultAug.Text,
                    Blank()
                ),
                'Comment (itobj_aug_comment)': Alpha.ComAug.Text,
                'Result sep': If(
                    Alpha.Unit <> Unit.text,
                    Value(Alpha.ResultSep.Text),
                    Blank()
                ),
               
Categories:
I have the same question (0)
  • Power Platform 1919 Profile Picture
    1,896 on at
    Hi ,
    can you please explain your requirement with more details and please mention what type of data sources are used
  • RV-16061027-0 Profile Picture
    93 on at
    I have used this code 
    'Result jul': If(
        Alpha.Unit <> Unit.text,
        If(
            !IsBlank(ResultJan),
            Value(Alpha.ResultJul.Text),
            LookUp(colTest, 'Objective ID' = Alpha.'Objective ID').ResultJulX
        ),
        Blank()
    ). 
    But after refreshing the app the data is not coming. means it is not saving the data.
     
    If the Textinput box is empty(Result Jan) then i am filling the value with icon. I need to save the value fill up with icon.
  • RV-16061027-0 Profile Picture
    93 on at
    'Result jul':
    If(
        Alpha.Unit <> Unit.text,
        If(
            !IsBlank(Alpha.ResultJul.Text),
            Value(Alpha.ResultJul.Text),
            fallbackResultJul
        ),
        Blank()
    I am getting the value for fallbackResultJul, but not for ResultJul, and I'm unable to save it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard