cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
antonio_piernav
Level: Powered On

help with gallery and CDS

Hello, I need help with the following problem. I have an entity in CDS called "REVISION" (attached photo). I want to show in a gallery filtered by the column "MATRICULA", I want that only the "KO" appear and to which column it belongs. Any ideas?Imagen sin título.png

1 ACCEPTED SOLUTION

Accepted Solutions
Maurits
Level 8

Re: help with gallery and CDS

Hi @antonio_piernav ,  your data seems to be stored in some sort of pivottable.
I think the only way to get what you want is to unpivot the data first.
In my test I unpivotted such data in a collection and use that collection as a source of the gallery.
In my case I named the collection colUnPivot and the gallery items: SortByColumns(colUnPivot;"Name";Ascending;"Test";Ascending)

Hope my attached image shows what I mean and can help you.

paUnPivot.PNG

 

Kind regards,

Maurits

 

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: help with gallery and CDS

Hi @antonio_piernav ,

 

This can be achieved by following steps:

You can add all the columns in the template part of the gallery, and set the Visible property of the controls for inspeccion123456 columns to:

If(ThisItem.inspeccion1="ko",true,false)
If(ThisItem.inspeccion2="ko",true,false)
...
...

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
antonio_piernav
Level: Powered On

Re: help with gallery and CDS

Hi and thanks for the answer. But I can not know to which column the result "KO" belongs.

I want to see in the gallery that the "matricula" "ddd" has "ko" in the "Inspeccion5"

 

ddd          inspeccion5

                        ko

 

ccc           inspeccion1      inspeccion3

                         ko                      ko

 

 

Thanks

Maurits
Level 8

Re: help with gallery and CDS

Hi @antonio_piernav ,  your data seems to be stored in some sort of pivottable.
I think the only way to get what you want is to unpivot the data first.
In my test I unpivotted such data in a collection and use that collection as a source of the gallery.
In my case I named the collection colUnPivot and the gallery items: SortByColumns(colUnPivot;"Name";Ascending;"Test";Ascending)

Hope my attached image shows what I mean and can help you.

paUnPivot.PNG

 

Kind regards,

Maurits

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,889)