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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Assistance with Mesurare relating two tables in a Matrix Visual

I created a new post because I could not reply to the original one, also now I can't add images, so there is an image that explains one of the errors better in the original post: https://community.powerbi.com/t5/Desktop/Assistance-with-Mesurare-relating-two-tables-in-a-Matrix-Vi...

 

Actual:

 

Service_IDCost TypeUSDMonthYearCountry
1Software1012020Argentina
1Hardware2022020Argentina
2Software512020Spain
2Software522020Spain
2Software532020Spain
3Communications1012020Argentina
3Communications512020Brasil
3Communications1022020Argentina
3Communications522020Brasil
3Communications1032020Argentina
3Communications532020Brasil

 

Budget:

 

Service_IDCost TypeCountryYear123456789101112
1SoftwareArgentina2020888888888888
2SoftwareSpain2020555555555555
3CommunicationsArgentina2020555555555555
3CommunicationsBrasil2020101010101010101010101010

 

Service_IDService_Name
1Windows Licences
2Autocad Licences
3Internet Link

 

Year

2000
….
2020

 

ATD: Actual to Day

BTD: Budget to Day

TB: Total Budget

 

Matrix 1:

 

Service NameATDBTDDifTB
(+) Windows Licences3024-696
______Software10241496
______Hardware200-200
Autocad Licences1515055
______Software1515055
Internet Link45450180
______Communications45450180

 

Matrix 2

 

Service NameArgentinaBrasilSpainTotal
 ATDBTDATDBTDATDBTDATDBTDTB
(+) Windows Licences3024    302496
______Software1024    102496
______Hardware200    2000
Autocad Licences    1515151555
______Software    1515151555
Internet Link30151530  4545180
______Communications30151530  4545180

 

Matrix 3

 

Service Name1234...12Total
 ABABABAB...ABAB
(+) Windows Licences3080808 8 83096
______Software1080808 8 81096
______Hardware  200      200
Autocad Licences555555 5 51555
______Software555555 5 51555
Internet Link151515151515 15 1545180
______Communications151515151515 15 1545180

 

- There is an slice with the year to filter, that only allows to check one year at a time.

- The matrix shows a line for each service, even if they don't have actual cost or budget (I need to show in all matrix only thos who have a value in either one actual or budget).

- For the service lines it shows the right value but when I open the service line in the category subline it opens a subline with each existent category for each service, even if a service has only one category both in budget and in actual.

 

 

1 REPLY 1
PaulDBrown
Community Champion
Community Champion

@Anonymous 

By the looks of it, you need to:

1) use the  third table as a dimension linked by "Service_Id" to your fact tables ("Buget" and "Actuals" in a one-to many relationship to use in measures, filters, slicers....

2) create a new dimension table for "Cost Type" to link in a one-to-many relationship to your "Budget" and "Actuals" tables for use in measures, filters, slicers....

 

and take it from there





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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