cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Creación de tablas con valores unicos

Hola,

Necesito ayuda!

 

Tengo que crear una nueva tabla a partir de datos de esta tabla.

 

Consulta 1.PNG

Necesito crear una tabla con valores unicos del campo codservicio

La tabla debe contener "Codservicio" (valores unicos) y los campos "Desde"(cuando el codlinea=1) y el campo "Hasta" (cuando destinotramos=True)

 

podeis ayudarme??

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Creación de tablas con valores unicos

@fmunoz 

I used the translator, if I get your problem correctly. Try create this table:

 

Table = 
var tableA = SUMMARIZE('Table','Table'[codservicio],[codlinea],[hasta],[destinotramos])
Return CALCULATETABLE(tableA,FILTER(tableA,[codlinea]=1),FILTER(tableA,[destinotramos]=TRUE()))

 

If the problem is not solved, it is appreciated if you can post in English, because translator may not describe your requirements correctly.

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Creación de tablas con valores unicos

@fmunoz 

I used the translator, if I get your problem correctly. Try create this table:

 

Table = 
var tableA = SUMMARIZE('Table','Table'[codservicio],[codlinea],[hasta],[destinotramos])
Return CALCULATETABLE(tableA,FILTER(tableA,[codlinea]=1),FILTER(tableA,[destinotramos]=TRUE()))

 

If the problem is not solved, it is appreciated if you can post in English, because translator may not describe your requirements correctly.

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors