The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Buenas tardes!
Antes de nada decir que soy nuevo en el foro y en Power bi, por lo que os pido disculpas de antemano si no es el sitio adecuado para este Post. Paso a exponer mi problema sin mas dilacion:
Tengo un fichero de clientes, con los campos tipicos: Codigo de cliente, Nombre del cliente, Direccion, ... (logicamente la clave unica del fichero es el codigo de cliente). Y un fichero de facturas con tambien los campos tipicos: Nº de Factura (Clave Unica), Fecha de factura, Código de cliente (para relacionarlo con el fichero de cliente), importe factura... etc.
Logicamente la relacion clientes -- facturas en 1:n
Pues Bien:
Necesito visalizar una tabla con la relacion de clientes a los que no se les ha emitido una factura en un periodo seleccionado por pantalla.
He probado con una medida y una nueva columna con un contador de facturas por cliente, pero en cuanto aplico el filtro por fechas, logicamente no me funciona.
No se si me he explicado bien
Alguna Idea?
Muchas Gracias por vuestra ayuda
Un Saludo
Jose Luis
Solved! Go to Solution.
Hi Jose Luis,
Create a proper calendar table for your model (there's plenty of examples online of how to do this) and relate this to your Invoices table on Calendar[Date] 1:n Invoices[Invoice Date].
Create a basic measure in your Invoices table like this:
_noofInvoices = DISTINCTCOUNT(Invoices[Invoice Number])
Then add Clients[Client Name] into a table visual, and add a visual-level filter that is [_noofInvoices] = 0 or [_noofInvoices] is Blank.
Right-click on Clients[Client Name] in the Values section on the Visualisations pane and choose 'Show items with no data'.
Use Calendar[Date] for the page slicers to select the period to view.
I've attached a working PBIX at the bottom of this post.
Pete
Proud to be a Datanaut!
Hi Jose Luis,
Create a proper calendar table for your model (there's plenty of examples online of how to do this) and relate this to your Invoices table on Calendar[Date] 1:n Invoices[Invoice Date].
Create a basic measure in your Invoices table like this:
_noofInvoices = DISTINCTCOUNT(Invoices[Invoice Number])
Then add Clients[Client Name] into a table visual, and add a visual-level filter that is [_noofInvoices] = 0 or [_noofInvoices] is Blank.
Right-click on Clients[Client Name] in the Values section on the Visualisations pane and choose 'Show items with no data'.
Use Calendar[Date] for the page slicers to select the period to view.
I've attached a working PBIX at the bottom of this post.
Pete
Proud to be a Datanaut!
Hi Pete!
Thank you very much for your help!
I'm going to try it right now
Regards
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.