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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors