Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dataguy2022
New Member

DAX Loop

Hello! I am very new to Power BI but Have a question. 

 

Need help on a loop or if statement that helps me do the following. Matches dates in a row, names in a row, and reponse codes in a row to deliver either a pass or failed. So if there are no matches it should be a fail. Need to do this Power BI Please.

 

The Dax should have 3 matches:

1. On the Date Time Column: Match the dates

2. Person Name: Name should match

3.  Response: Code Should Match

4. If all of these match then Success otherwise Fail 

 

dataguy2022_2-1668209353013.png

 

 

 

 

 

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

hi   @dataguy2022 

 

 1. CONCAT - date, person name, and response code

1) Syntax

The basic syntax of the Power BI CONCATENATE function is as follows:

CONCATENATE(<text1>, <text2>)

2. Count the number of CONCAT per person using ALLEXCEPT

Solved: Group BY and COUNT - Microsoft Power BI Community

3. Wherever you have 1 means fail

Use If statement here

 

Thanks,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

 

View solution in original post

3 REPLIES 3
ribisht17
Super User
Super User

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

v-xiaotang
Community Support
Community Support

Hi @dataguy2022 

Thanks for reaching out to us.

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

ribisht17
Super User
Super User

hi   @dataguy2022 

 

 1. CONCAT - date, person name, and response code

1) Syntax

The basic syntax of the Power BI CONCATENATE function is as follows:

CONCATENATE(<text1>, <text2>)

2. Count the number of CONCAT per person using ALLEXCEPT

Solved: Group BY and COUNT - Microsoft Power BI Community

3. Wherever you have 1 means fail

Use If statement here

 

Thanks,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors