cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
devika
Helper I
Helper I

Extract and search list and record

Hi all,

 

I am trying to extract  and search the List and Records from JSON column.

 

Here is my query steps so far and below is the explaination of one row

devika_6-1648687323028.png

 

1. Here is the record for each row

devika_1-1648686481485.png

 

2. In the each record there are few values.

 

devika_2-1648686574212.png

 

3. I need to search only in the Notes. It is a 'List' .

 

devika_3-1648686723280.png

 

4. In each list there are multiple records it can goup to 50.

In this example, there are 18 case notes left.

 

5. Here is the structure for each record. In the each record, I have to look for "Conversation with" row and need to search for a string "RTB", if 'RTB' existing then the original row it should display 1. In this example, 63207 should have 1

devika_4-1648686895810.png

 

Can I get some guidance to proceed further pls?

 

 

 

 

1 REPLY 1
johnt75
Super User
Super User

I think you can add a new custom column along the lines of

if List.MatchesAny( [CaseJson][Notes], each _[ConversationWith] = "RTB") then 1 else 0 end

The syntax may not be quite right but I think the general principle will work

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors