Hi guys.
I'm facing a problem which, I think that basically it's going to create performance problems because of duplicating tables with so many data and I don't know if I could do it in another way in PowerBI. I'm going to put you in context.
I'm doing one dashboard for a client who has five companies and needs to analyze: Invoices, Installments, and Delivery Notes data with different slicers like day, month, year, company and type of data (Invoices + Delivery Notes or Installments + Delivery Notes)
These are all the companies which their respective tables:
EXAMPLE TABLE
Nº # | Company 1 | Company 2 | Company 3 | Company 4 | Company 5 |
#1 | Invoice Header | Invoice Header | Invoice Header | Invoice Header | Invoice Header |
#2 | Invoice Lines | Invoice Lines | Invoice Lines | Invoice Lines | Invoice Lines |
#3 | Installment Header | Installment Header | Installment Header | Installment Header | Installment Header |
#4 | Installment Lines | Installment Lines | Installment Lines | Installment Lines | Installment Lines |
#5 | Delivery Notes Header | Delivery Notes Header | Delivery Notes Header | Delivery Notes Header | Delivery Notes Header |
#6 | Delivery Notes Lines | Delivery Notes Lines | Delivery Notes Lines | Delivery Notes Lines | Delivery Notes Lines |
You can imagine such a quantity of data this is. So, to be able to analyze all this data at the same time in only one dashboard what I had to do is append all Invoice Header tables (#1) into one, later append all Invoice Lines tables (#2) into one, like this with every line of the Example table. And once done this, I have to join the resulting tables to finally have:
- Header of each kind of data (Invoice + Installments + Delivery notes) of all companies
- Lines of each kind of data (Invoice + Installments + Delivery notes) of all companies.
As you can see, I'm duplicating tables several times, for the end, to be able to analyze everything in one dashboard like this (I know, it's horrible drawing ) because PowerBI doesn't allow to query one table or another depending in a slicer selection, that's why I have to join them so many times.
So, my question is, isn't there a better way to do this in PowerBI? Or can't PowerBI give the best of yourself?
Any question you have because you don't understand what I'm trying to explain, don't hessitate to ask!
Thanks.