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 display a text ...
Power Apps
Answered

How to display a text from the Dataverse?

(0) ShareShare
ReportReport
Posted on by 73

Hello,

I am developing an application to evaluate questions.

I use the dataverse for that.

 

Lenders18_0-1679671591635.png

This is my application:

 

I would like that when I click on the icon in red, to display in a label the "LEVEL DESCRIPTION" of my Level table, according to the icon of the question.

 

Can you help me? I have been stuck for 10 days.

 

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Lenders18 ,

    I cannot figure it out the relation between Table Question and the gallery from your application, but i'm sure that is one. So I supposed that the gallery is a filter of table Question.

    Based on this:

    In gallery you should use a radio control with the following properties:

    Items:
    Filter(Level,'QUESTION ID'=ThisItem.ID).LEVEL
    Color:
    White
    Hover Color:
    White
    Size:
    1
    Layout:
    Layout.Horizontal

    and about the icon, for a better user experience, you should use the tooltip properties with:

    LookUp(Level,'QUESTION ID'=ThisItem.ID && LEVEL = RadioControl.Selected.Value,'Level Description')

     

    Hope it helps !

  • Lenders18 Profile Picture
    73 on at

    Hello Gabibaban, 

     

    I have an error message :

     

    "Incompatible type for comparison. It is possible to compare these types: Text; Number"

     

    Code with real column names : 

     

     

    When i clic on my radio : 

     

    "Error while trying to retrieve data from network"

     

     

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Lenders18 ,

    Try this:

    With({selectedLevel:Text(Radio_lvl_Choice.Selected.Value)};
    LookUp(Level;Question.ID=ThisItem.ID && Level_Name=selectedLevel;'Description FR')
    )

     

  • Lenders18 Profile Picture
    73 on at

    it works but i have a problem @gabibalaban .

     

    Items : 

     

     

    Filter(Level;Questions.ID = ThisItem.ID).Level_Name

     

     

     

    Tooltip : 

     

     

    With(
     {selectedLevel: Text(Radio_Lvl_Choice.Selected.Level_Name)};
     LookUp(
     Level;
     Questions.ID = ThisItem.ID && Level_Name = selectedLevel; 'Description FR'
     )
    )

     

     

     

     

     

    The value of my radio, it should show the "Value" not the Level_Name.

     

     

     

    My table on dataverse : 

     

     

    AND I also need to display the value in order.
    1, 2, 3 4

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Lenders18 ,

    If noticed a small mistake in my formula (yours works fine as well).

     

    With({selectedLevel:Text(Radio_lvl_Choice.Selected.Value)};
    LookUp(Level;Question.ID=ThisItem.ID && Value=selectedLevel;'Description FR')
    )

     

    The radio items will be in this case:

     

    Sort(Filter(Level;Questions.ID = ThisItem.ID),Value,Ascending).Value

     

    For a friendly UI , I recommend to set Size to 1 and color to White to obtain something like:

    gabibalaban_0-1679929395726.png

    Hope it helps!

     

  • Lenders18 Profile Picture
    73 on at

    @gabibalaban 

     

    It doesn't work anymore.

    Tooltip : 

     

    Lenders18_0-1679994960988.png

     

    Items :

    Lenders18_1-1679995054804.png

     

    When i clic on my radio : 

     

    "Error while trying to retrieve data from network"

     

     

     

    Do you have an idea ?

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hmm … there is something I miss.

    Let’s go back to your working formulas:

    items:

    Sort(Filter(Level;Questions.ID = ThisItem.ID);Level_Name;SortOrder.Ascending).Level_Name

    Tooltip:

    With(
     {selectedLevel: Text(Radio_Lvl_Choice.Selected.Level_Name)};
     LookUp(
     Level;
     Questions.ID = ThisItem.ID && Level_Name = selectedLevel; 'Description FR'
     )
    )

     

     

  • Verified answer
    Lenders18 Profile Picture
    73 on at

    I founded the solution @gabibalaban 

     

    I replaced in tooltip with this:

    With(
     {selectedLevel: Text(Radio_Lvl_Choice.Selected.Value)};
     First(Filter(
     Level;
     Questions.ID = ThisItem.ID;Text(Value)=selectedLevel)).'Description FR'
     )

     

    I think you were right. but in the syntax we compare Text with an integer. 

     

    Thank you very much for your help 🙂

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard