Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola a todos, tengo múltiples columnas con mulitple producto. Me gustaría filtrar o preparar el informe cliente Vs productos no optados.
Por ejemplo: Tabla 1:
Customer_Num | Customer_Name | Ubicación | Manager_Name |
CUST_001 | Juan C | Costa afuera | Mathhew A |
CUST_002 | Mathhew A | In situ | Mathhew A |
CUST_003 | Pablo P | In situ | Mathhew A |
CUST_004 | Tom R | In situ | Mathhew A |
CUST_005 | Darren C | In situ | Mathhew A |
CUST_006 | Pablo H | Costa afuera | Mathhew A |
CUST_007 | Johnathan R | In situ | Johnathan R |
CUST_008 | Marc P | Costa afuera | Johnathan R |
CUST_009 | Marca A | Costa afuera | Johnathan R |
CUST_010 | Nisha P | In situ | Johnathan R |
CUST_011 | Kumar K | Costa afuera | Johnathan R |
Tabla 2:
Customer_Num | Customer_Name | Producto1 | Producto2 | Producto3 | Producto4 | Producto5 | Producto6 | Producto7 | Producto8 | Producto9 | Producto10 | Optado | Noaplicable | No optó |
CUST_001 | Juan C | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | 10 | 0 | 0 |
CUST_002 | Mathhew A | N | Y | N | Y | Y | Y | Y | Y | Y | Y | 8 | 0 | 2 |
CUST_003 | Pablo P | EN | Y | EN | Y | Y | Y | Y | Y | Y | Y | 8 | 2 | 0 |
CUST_004 | Tom R | Y | Y | Y | Y | N | Y | Y | Y | Y | Y | 9 | 0 | 1 |
CUST_005 | Darren C | N | Y | EN | Y | EN | Y | Y | Y | Y | Y | 7 | 2 | 1 |
CUST_006 | Pablo H | EN | Y | Y | Y | Y | Y | Y | Y | Y | Y | 9 | 1 | 0 |
CUST_007 | Johnathan R | Y | Y | N | Y | Y | Y | Y | Y | Y | Y | 9 | 0 | 1 |
CUST_008 | Marc P | N | Y | EN | Y | Y | Y | Y | Y | Y | Y | 8 | 1 | 1 |
CUST_009 | Marca A | EN | Y | Y | Y | N | Y | Y | Y | Y | Y | 8 | 1 | 1 |
CUST_010 | Nisha P | Y | Y | Y | Y | EN | Y | Y | Y | Y | Y | 9 | 1 | 0 |
CUST_011 | Kumar K | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | 9 | 0 | 1 |
Informe requerido:
Customer_Num | Customer_Name | Manager_Name | Producto1 | Producto3 | Producto5 | No optó |
CUST_004 | Tom R | N | 1 | |||
CUST_005 | Darren C | N | 1 | |||
CUST_007 | Johnathan R | N | 1 | |||
CUST_008 | Marc P | N | 1 | |||
CUST_009 | Marca A | N | 1 | |||
CUST_011 | Kumar K | N | 1 | |||
CUST_002 | Mathhew A | N | N | 2 |
¿Podría alguien proporcionar un proceso paso a paso para crear el informe DE DETALLES ANTERIORES UTILIZANDO POWER Query y Power View? Muchas gracias
Solved! Go to Solution.
Hay @chratnaa5 ,
Primero seleccione el Customer_Num y Customer_Name, luego despivot otras columnas.
Si tiene un requisito para el orden entre columnas en la matriz, puede agregar esa columna personalizada para ordenar la columna Atributo.
= if [Attribute] = "Opted" then 11 else if [Attribute] = "NotApplicable" then 12 else if [Attribute] = "Not Opted" then 13 else Text.Select([Attribute], {"0".."9"})
A continuación, cree y utilice la siguiente medida.
Measure =
CALCULATE (
MAX ( 'Table 2'[Value] ),
FILTER (
'Table 2',
'Table 2'[Value] = "N"
|| ( 'Table 2'[Attribute] = "Not Opted" && MAX ( 'Table 2'[Value] ) <> "0" )
)
)
Si el problema aún no se resuelve, proporcione información detallada sobre el error o el resultado esperado que espera. Hágamelo saber de inmediato, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
Hay @chratnaa5 ,
Primero seleccione el Customer_Num y Customer_Name, luego despivot otras columnas.
Si tiene un requisito para el orden entre columnas en la matriz, puede agregar esa columna personalizada para ordenar la columna Atributo.
= if [Attribute] = "Opted" then 11 else if [Attribute] = "NotApplicable" then 12 else if [Attribute] = "Not Opted" then 13 else Text.Select([Attribute], {"0".."9"})
A continuación, cree y utilice la siguiente medida.
Measure =
CALCULATE (
MAX ( 'Table 2'[Value] ),
FILTER (
'Table 2',
'Table 2'[Value] = "N"
|| ( 'Table 2'[Attribute] = "Not Opted" && MAX ( 'Table 2'[Value] ) <> "0" )
)
)
Si el problema aún no se resuelve, proporcione información detallada sobre el error o el resultado esperado que espera. Hágamelo saber de inmediato, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
La solución está funcionando bien. Muchas gracias.
Hola
Busque el archivo de Power BI adjunto. Mensaje de error que aparece:
Tipo de retroalimentación:
Fruncir el ceño (error)
Mensaje de error:
No se encontró ningún controlador para el tipo de mensaje 'Microsoft.Mashup.Evaluator.MessageBasedOutputStream+BinaryChunkMessage'.
Seguimiento de pila:
Microsoft.Mashup.Host.Document.SerializedException
en Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(canal IMessageChannel, mensaje de mensaje)
en Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(Canal IMessageChannel, Mensaje de mensaje)
en Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(canal IMessageChannel, mensaje de mensaje)
en Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](canal IMessageChannel)
en Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation.TranslateCancelExceptions(Acción de acción)
en Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation.IgnoreCancelExceptions(Acción de acción)
en Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation.Finish()
en Microsoft.Mashup.Evaluator.Interface.IDataReaderSourceExtensions.<>c__DisplayClass1_0.<AfterDispose>b__0()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.Evaluator.Interface.EvaluationResultExtensions.Dispose[T](EvaluationResult2'1 result)
en Microsoft.Mashup.Evaluator.LimitedDocumentEvaluatorFactory.Evaluation'1.<>c__DisplayClass10_0.<Complete>b__0()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.Evaluator.DocumentEvaluator.<>c__DisplayClass7_1'1.<BeginGetResult>b__1()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.Evaluator.Interface.EvaluationResultExtensions.Dispose[T](EvaluationResult2'1 result)
en Microsoft.Mashup.Evaluator.LimitedDocumentEvaluatorFactory.Evaluation'1.<>c__DisplayClass10_0.<Complete>b__0()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.Evaluator.Interface.EvaluationResultExtensions.Dispose[T](EvaluationResult2'1 result)
en Microsoft.Mashup.OleDbProvider.DataHost.MashupEvaluator.<>c__DisplayClass4_1.<Evaluate>b__1()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.Engine.Interface.Tracing.TracingDataReaderSource.Dispose()
en Microsoft.Mashup.Evaluator.Interface.IDataReaderSourceExtensions.<>c__DisplayClass1_0.<AfterDispose>b__0()
en Microsoft.Mashup.Evaluator.Interface.NotifyingDataReaderSource.Dispose()
en Microsoft.Mashup.OleDbProvider.MashupCommandEvaluation.Dispose()
en Microsoft.Mashup.OleDbProvider.TracingMultipleResults.Dispose()
Mensaje de seguimiento de pila:
No se encontró ningún controlador para el tipo de mensaje 'Microsoft.Mashup.Evaluator.MessageBasedOutputStream+BinaryChunkMessage'.
Seguimiento de pila de invocación:
en Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
en Microsoft.Mashup.Client.UI.Shared.StackTraceInfo.. ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
en Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
en Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
en Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass15_0.<HandleException>b__0()
en Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass2_1.<SendAndMarshalExceptions>b__0(Object null)
en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
en System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
en System.Delegate.DynamicInvokeImpl(Object[] args)
en System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
en System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
en System.Windows.Forms.Control.InvokeMarshaledCallbacks()
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Motivo Int32, contexto ApplicationContext)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Motivo Int32, contexto ApplicationContext)
en System.Windows.Forms.Form.ShowDialog(propietario de IWin32Window)
en Microsoft.Mashup.Client.UI.Windows.DialogWindowBase.ShowModal(IWindowHandle windowHandle)
en Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](cuadro de diálogo T, Func'1 showModalFunction)
en Microsoft.PowerBI.Client.Windows.FloatingDialog.KoLoadToReportDialog.TryShowDialog(Informe de informe, IExceptionHandler exceptionHandler, IPowerBIWindowService windowService, IQueryServices queryServices, IDesktopModelingHost modelingHost, LocalizedString title, LoadToModelContext loadToModelContext)
en Microsoft.PowerBI.Client.Windows.FloatingDialog.KoLoadToReportDialog.<>c__DisplayClass16_0.<TryShowDialogForQueries>b__0()
en Microsoft.PowerBI.Client.Windows.Report.<>c__DisplayClass60_0'1.<SynchronizeLooselyWithQueries>b__0()
en Microsoft.PowerBI.Client.Windows.Report.<SynchronizeLooselyWithQueriesAsync>d__61'1.MoveNext()
en System.Runtime.CompilerServices.AsyncTaskMethodBuilder'1.Start[TStateMachine](TStateMachine& stateMachine)
en Microsoft.PowerBI.Client.Windows.Report.SynchronizeLooselyWithQueriesAsync[T](Func'1 getTask)
en Microsoft.PowerBI.Client.Windows.Report.SynchronizeLooselyWithQueries[T](acción de Func'1)
en Microsoft.PowerBI.Client.Windows.Services.QueriesEditorWindowManager.ApplyQueryChanges(IEnumerable'1 queriesToLoad)
en Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Acción de acción)
en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
en System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
en System.Delegate.DynamicInvokeImpl(Object[] args)
en System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
en System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
en System.Windows.Forms.Control.InvokeMarshaledCallbacks()
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Motivo Int32, contexto ApplicationContext)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Motivo Int32, contexto ApplicationContext)
en System.Windows.Forms.Form.ShowDialog(propietario de IWin32Window)
en Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](cuadro de diálogo T, Func'1 showModalFunction)
en Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_0.<Main>b__1()
en Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
en Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Acción de acción)
en Microsoft.PowerBI.Client.Program.Main(String[] args)
PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.95.983.0","ModuleName":"","Component":"Microsoft.Mashup.Evaluator.MessageHandlers","Error":"Microsoft.Mashup.Host.Document.SerializedException - System.InvalidOperationException","MethodDef":"Dispatch","ErrorOffset":""}
Registros de seguimiento de instantáneas:
C:\Users\SadgunYashveer\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot4c44e12b-93e3-4f09-9d1d-129d17658e4a.zip
Modo predeterminado del modelo:
Importación
Versión del modelo:
PowerBI_V3
Registros de seguimiento de rendimiento:
C:\Users\SadgunYashveer\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip
Funciones de vista previa habilitadas:
PBI_JsonTableInference
PBI_NewWebTableInference
PBI_ImportTextByExample
PBI_ExcelTableInference
PBI_rdlNativeVisual
Características de vista previa deshabilitadas:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_azureMapVisual
PBI_dataPointLassoSelect
PBI_compositeModelsOverAS
PBI_dynamicParameters
PBI_enhancedTooltips
PBI_enableWebView2
Opciones de DirectQuery deshabilitadas:
TreatHanaAsRelationalSource
Nube:
GlobalCloud
PowerBINonFatalError_ErrorDescription:
System.InvalidOperationException
PowerBIUserFeedbackServices_IsReported:
Verdadero
Fórmulas:
sección Sección1;
Customer_Details compartido = let
Source = Excel.Workbook(File.Contents("C:\PowerBI\Test Data\Test_Data.xlsx"), null, true),
Customer_Details_Sheet = Source{[Item="Customer_Details",Kind="Sheet"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(Customer_Details_Sheet,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}}),
#"Encabezados promocionados" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Encabezados promocionados",{{"Customer_Num", escriba texto}, {"Customer_Name", escriba texto}, {"Ubicación", escriba texto}, {"Manager_Name", escriba texto}})
en
#"Tipo1 cambiado";
Hay @chratnaa5 ,
No pude encontrar el archivo de Power BI adjunto, ¿podría compartir su archivo PBIX nuevamente?
Saludos
Winniz
Lo siento, algún problema con mi perfil, no puedo adjuntar el archivo.
Hay @chratnaa5
Echa un vistazo a este archivo
https://drive.google.com/drive/folders/1rRwGYf8kYfdrj0nU0xhUoiSpFH7tVcF1?usp=sharing
@aj1973 - Había dado datos de muestra. En el sistema en vivo tengo más de 60 productos únicos, quiero decir que los nombres de las columnas son diferentes. No pude encontrar resultados finales.
Sin embargo, muchas gracias por su tiempo.
Hay @chratnaa5 ,
¿Se ha resuelto su problema? Si el problema aún no se resuelve, proporcione información detallada sobre el error o el resultado esperado que espera. Hágamelo saber de inmediato, esperando su respuesta.
Saludos
Winniz
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |