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

Display non-existent row in Matrix

Hello folks,

 

I have a table with 3 columns "Order", Account" and "Value" as following in Power Queries :

 

OrderAccountValue
1A011 000,00 €
2B011 500,00 €

 

In the Matrix chart, I selected as "Order" Show all (1 & 2) and same for the "Account" (A01 & B01), so PBI displayed the entire table that I have in P Queries (It makes sense huh)

 

My issue is that I want to display all the possible intersections between Order and Account when there is no values linked to those rows. In other words, I need to display a table like this one:

 

OrderAccountValue
1A011 000,00 €
1B01 
2A01 
2B022 000,00 €

 

Can you help ?

("The show items with no data" function in PBI Desktop doesn't work here)

 

Thanks

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

For your issue, do it like this:

My original data table:

c20.PNG

c21.PNGc22.PNG

 

//sheet1(3): the second original table; sheet1(4): the third
Table = CROSSJOIN('Sheet1 (3)', 'Sheet1 (4)')

c23.PNG

//sheet1: the first original table
Column = 
LOOKUPVALUE(
    Sheet1[Value],
    Sheet1[Order], 'Table'[Order],
    Sheet1[Account], 'Table'[Account]
)

c24.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

For your issue, do it like this:

My original data table:

c20.PNG

c21.PNGc22.PNG

 

//sheet1(3): the second original table; sheet1(4): the third
Table = CROSSJOIN('Sheet1 (3)', 'Sheet1 (4)')

c23.PNG

//sheet1: the first original table
Column = 
LOOKUPVALUE(
    Sheet1[Value],
    Sheet1[Order], 'Table'[Order],
    Sheet1[Account], 'Table'[Account]
)

c24.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.