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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rdc_green
Frequent Visitor

La segmentación no muestra opciones si los datos no existen

Tengo la siguiente cortadora:

rdc_green_1-1603449755205.png

Cuando selecciono un id vinculado a la segmentación de datos que no tiene ningún dato para 'Hoy' obtengo lo siguiente:

rdc_green_0-1603449715357.png

Me gustaría que la segmentación de datos tuviera todas las opciones sin importar qué id esté seleccionado.

Esta es la consulta de segmentación de datos:

Dejar
Fuente: deje que
TodaysDate ? Date.From(DateTimeZone.FixedUtcNow()),
Rangos de rangos ?
"Hoy",
TodaysDate,
TodaysDate,
1},
"WTD",
Date.From(Date.StartOfWeek(TodaysDate)),
TodaysDate,
2},
"MTD",
Date.From(Date.StartOfMonth(TodaysDate)),
TodaysDate,
3},
"QTD",
Date.From(Date.StartOfQuarter(TodaysDate)),
TodaysDate,
4},
"YTD",
Date.From(Date.StartOfYear(TodaysDate)),
TodaysDate,
5}
},
GetTables - List.Transform(Ranges,
cada CreatePeriodTable(_{0}, _{1}, _{2}, _{3})),
Salida: Table.Combine(GetTables)

En
Salida
En
Fuente

con esta función:

Dejar
Fuente (
PeriodName como texto,
StartDate como fecha,
EndDate como fecha,
SortOrder como número
) como tabla >
Dejar
DayCount ? Duration.Days(EndDate-StartDate)+1,
DateList: List.Dates(StartDate,DayCount,#duration(1,0,0,0)),
AddPeriodName á List.Transform(DateList,
cada "Nombre De Período,_,SortOrder"),
CreateTable á #table(
tabla de tipos [Período-texto, Fecha,fecha, Orden-número],
AddPeriodName)
En
CreateTable
En
Fuente

Gracias

1 ACCEPTED SOLUTION

Hola @rdc_green ,

Trata de hacer esto.

v-lionel-msft_0-1603694287957.png

Otra forma es hacer que los campos de las dos segmentaciones provendntes provendremos de dos tablas no relacionadas.

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

3 REPLIES 3
Pragati11
Super User
Super User

Hola @rdc_green ,

Desactive las interacciones de la segmentación de datos. Consulte lo siguiente:

https://www.wisdomaxis.com/technology/software/powerbi/interview-questions/what-is-the-default-visua...

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!!

Unfortunatley I don't have the option to turn interactions off for that slicer:

 

rdc_green_0-1603451332956.png

 

Hola @rdc_green ,

Trata de hacer esto.

v-lionel-msft_0-1603694287957.png

Otra forma es hacer que los campos de las dos segmentaciones provendntes provendremos de dos tablas no relacionadas.

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Kudoed Authors