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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DAX: IF true then do t...
Power Apps
Answered

DAX: IF true then do this AND this, else do that.

(0) ShareShare
ReportReport
Posted on by 219

Hi,

I'm really sorry if this is a silly question, I've only just started learning PowerApps less than 24hrs ago. I have an IF statement which currently looks like the below:

 

 

If(
 !IsBlank(Field_App_Sch_cases.Text) && !IsBlank(Field_Cases_Merchandised.Text) && !IsBlank(Field_Coke_Cases.Text) && !IsBlank(Field_Energy_Cases.Text) && !IsBlank(Field_Entry_Displays.Text) && !IsBlank(Field_Exit_Displays.Text) && !IsBlank(Field_No_Staff.Text) && !IsBlank(Field_Visit_Duration.Text),
 Collect(
 Table1,
 {
 App_Sch_Cases: Field_App_Sch_cases.Text,
 Cases_Merchandised: Field_Cases_Merchandised.Text,
 Coke_Cases: Field_Coke_Cases.Text,
 Energy_Cases: Field_Energy_Cases.Text,
 Entry_Displays: Field_Entry_Displays.Text,
 Exit_Displays: Field_Exit_Displays.Text,
 No_Staff: Field_No_Staff.Text,
 Visit_Duration: Field_Visit_Duration.Text,
 User: varUser.myProfile.mail,
 User_Name: varUser.myProfile.displayName,
 Manager_Name: varUser.myManager.displayName,
 Store_Name: StoreName,
 Store_Number: Field_Account_Number.Text,
 Store_Fascia: StoreType
 }
 ),
 Notify(
 "Please make sure you've answered all questions.",
 NotificationType.Error
 )
);

 

 

What I'd like to do is after the Collect then I'd like to navigate to another screen. However I'm struggling to figure out how to add an additional true step. i.e.

 

IF 

a = a

THEN

1 = 1

AND 2 = 2

ELSE

0 = 0

ENDIF

 

Any help would be much appreciated. Thank you.

Categories:
  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @CCEP_Mike , Try this:

    If(
     !IsBlank(Field_App_Sch_cases.Text) && !IsBlank(Field_Cases_Merchandised.Text) && !IsBlank(Field_Coke_Cases.Text) && !IsBlank(Field_Energy_Cases.Text) && !IsBlank(Field_Entry_Displays.Text) && !IsBlank(Field_Exit_Displays.Text) && !IsBlank(Field_No_Staff.Text) && !IsBlank(Field_Visit_Duration.Text),
     Collect(
     Table1,
     {
     App_Sch_Cases: Field_App_Sch_cases.Text,
     Cases_Merchandised: Field_Cases_Merchandised.Text,
     Coke_Cases: Field_Coke_Cases.Text,
     Energy_Cases: Field_Energy_Cases.Text,
     Entry_Displays: Field_Entry_Displays.Text,
     Exit_Displays: Field_Exit_Displays.Text,
     No_Staff: Field_No_Staff.Text,
     Visit_Duration: Field_Visit_Duration.Text,
     User: varUser.myProfile.mail,
     User_Name: varUser.myProfile.displayName,
     Manager_Name: varUser.myManager.displayName,
     Store_Name: StoreName,
     Store_Number: Field_Account_Number.Text,
     Store_Fascia: StoreType
     }
     );
     Navigate(ScreenName),
     Notify(
     "Please make sure you've answered all questions.",
     NotificationType.Error
     )
    );

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • CCEP_Mike Profile Picture
    219 on at

    @ANB thank you very much!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard