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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors