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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
LP280388
Resolver II
Resolver II

Extract Text after each iteration

Hi Team,

 

I have the data in the below format from DB.  I need to extract the text after every "SectionHdr",  "QuestionHdr", "QuestionTxt" and "SectionRe".  Please help me as i'm unsure on how to iterate multiple times within the same text.  I have also added a sample of Output im trying to achieve.

 

Column1  (Input)

 

[
{
        "Questionnaire": [
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header1",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text1"
            },
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header2",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text2"
            },
{
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header3",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text3"
            },
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header4",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text4"
            }
        ],
        "SectionCs": "",
        "SectionDr": "20",
        "SectionHdr": "Sec1",
        "SectionID": "wefwe-1001",
        "SectionRe": "N"
    },
    {
        "Questionnaire": [
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header1",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text5"
            },
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header2",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text6"
            }
        ],
        "SectionCs": "",
        "SectionDr": "20",
        "SectionHdr": "Sec3",
        "SectionID": "wefwe-1001",
        "SectionRe": "y"
    },
 
 
    {
        "Questionnaire": [
            {
                "QuestionAIs": "vvv; ooo",
                "QuestionAf": "rrrr; ppp; aaa ",
                "QuestionDr": "10",
                "QuestionHdr": "header1",
                "QuestionID": "af-afddfadsf",
                "QuestionSts": "dasdff",
                "QuestionTxt": "text7"
            }
        ],
        "SectionCs": "",
        "SectionDr": "20",
        "SectionHdr": "Sec4",
        "SectionID": "wefwe-1001",
        "SectionRe": "y"
    }
]


Output
 

1. Sec1 :
header1 :
- text1
header2 :
- text2
- text2.1
header3 :
- text3
header4 :
- text4

SectionRe : N

2. Sec2 :
header1 :
- text6
header2 :
- text7

SectionRe : y

3. Sec3 :
header1 :
- text8

SectionRe : y

2 REPLIES 2
LP280388
Resolver II
Resolver II

Hi Team, Please help on the above request.

LP280388
Resolver II
Resolver II

Hi Team, Please help on the above request.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors