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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How do I create a new table, and populate it with columns from another table with no blank rows?

I have a massive table with 50+ columns in Power BI. I want to create a brand new table, and select just 5 columns, and also filter out blank values for all of these columns

 

  1. OrderID
  2. Start Date
  3. End Date
  4. Revenue
  5. Cost

The table should look like this -- note there are no blank values, even if the original table has multiple order ID repeating without any values

 

jsauerla_0-1601994492413.png

 

3 REPLIES 3
Pragati11
Super User
Super User

Hola @jsauerla ,

Para crear una nueva tabla a partir de la tabla grande, puede utilizar simplemente el siguiente DAX para la creación de nueva tabla:

Tabla Pequeña : SELECTCOLUMNS(ClothingSales, "Category", ClothingSales[Category], "Date", ClothingSales[Date], "Sales", ClothingSales[Ventas])
En cuanto a los valores en blanco, tendrá que dar más detalles sobre cómo están los valores en blanco en la columna de datos o proporcionar datos de ejemplo con valores en blanco.
Gracias
Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hola @Pragati11 : Aquí hay un ejemplo de mi tabla, a continuación, que muestra los valores en blanco - si tuviera que filtrarlos, sólo habría un ID de pedido, sin entradas en blanco

Simplemente no sé cómo usar filter y not(isblank()) DAX con select columns instrucción...

jsauerla_0-1601995595144.png

Hola @jsauerla ,

Como usted dice que sólo un identificador de pedido permanecerá en la tabla después de eliminar los espacios en blanco, ¿significa eso quitar cualquier ID de pedido que no tenga valores en otras 3 columnas?

¿Puede pegar la salida esperada por favor? También comparta los datos de entrada en un formato para que pueda copiarlos y pegarlos fácilmente en Power BI.

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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