Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate II
1 year ago
Solved

Need help with a data model relationship

I am pulling in a table that has unique account numbers.  And then I am also pulling in PDF electricity invoices.  The invoices have meter numbers.  The issue I am having is (1) meter number might be assigned to multiple account numbers.  How do I handle this in the data model?

ConcatAccountMeterNumberPercentageSort
70-034-6800-100KZD866149170.362
70-062-6800-601KZD866149140.55
70-062-6800-602KZD866149140.56
70-070-6800-100KZD866149170.283
70-010-6800-100KZD866149170.361
70-062-6800-603KZD9663276717
70-030-6800-1001ND7810566714

 

 

 

Sample of the table from the invoices:

April 2024 Services.pdfMeter#Dates_FromDates_ToReads_FromReads_ToUsageMultiplierUsedUnitsEstimateUsed_NEWPercentageUsed_FINAL
April 2024 Services.pdfKZD866149174/2/20245/2/20241780.5621851.64471.0812100149,270.940KVRNo149270.10.3653737.236
April 2024 Services.pdfKZD866149174/2/20245/2/20241780.5621851.64471.0812100149,270.940KVRNo149270.10.2841795.628
Aug services2024.pdf1ND781056678/2/20249/3/2024140379.42141623.1181243.69811,243.699KWHNo1243.69811243.698
May Services 2024.pdf1ND781056675/2/20246/4/2024137288.869138229.049940.181940.185KWHNo940.181940.18
Oct 2024 Services.pdfKZD9663276710/20/202410/20/2024null79.36null179.360KWNo79.36179.36
Sept Services 2024.pdfKZD966327679/3/202410/2/20241948.452075.936127.48520025,497.100KWHNo25497125497

 

  • rmcgrath Power BI supports many-to-many relationships or you could use a bridge table with distinct meter #'s.

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    rmcgrath Power BI supports many-to-many relationships or you could use a bridge table with distinct meter #'s.

    • rmcgrath's avatar
      rmcgrath
      Advocate II

      A bridge table!  I did not think of that...thank you!!