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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to use loops in Ht...
Power Apps
Unanswered

How to use loops in HtmlText (Power Apps, SharePoint)

(0) ShareShare
ReportReport
Posted on by 134

This is the code for HtmlText.

And the code below is connected to SharePoint.

"<div>" &
 Concat(
 Distinct(
 Table1.A, A.Value
 ), Value
 & 
 "<div style='padding-left: 150px;'>" &
 Concat(
 Distinct(
 Filter(
 Table1, 
 A.Value = "ID" // here
 ), B.Value
 ), Value & "<br>"
 ) &
 "</div>"
 ) & 
"</div>"

In the line 'here' as a comment in the code, "ID" is one of the Values ​​of A.
What should I use instead of "ID" if I want to see all values ​​in B that belong to Value in A?

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @kjk4563 

     

    try this:

    <div>
     Concat(
     Distinct(
     Table1.A, A.Value
     ), Value
     & 
     "<div style='padding-left: 150px;'>"
     & Concat(
     Distinct(
     Filter(
     Table1, 
     A.Value = selectedAValue
     ), B.Value
     ), Value & "<br>"
     )
     & "</div>"
     )
    </div>
    

     

    Here, selectedvalue should be replaced with the actual control or variable that holds the value from column A that you want to filter on.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard