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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
COIL-ibesmond
Helper I
Helper I

Return Multiple Values in a Matrix Visual as Values

Hello,

 

I'm trying to figure out how to add purchase details to an inventory summary. I can't attach a pbix, but I'll try to provide all the details I can.

 

I would like to have the values side by side, but I would be open to a tooltip that displays the values if what I am trying to do is not possible.

 

Here is an example of my data model.

Screenshot 2024-03-13 101218.png

Here is an example of the matrix in the visualization pane.

Screenshot 2024-03-13 101605.png

I tried pulling in the PO Number directly and my options are aggregated.

First, Last, Count (Distinct), Count, which is not what I want.

I have tried a number of things but cannot find a solution.

 

This is the current result.

Screenshot 2024-03-13 103728.png

This is the desired result

Screenshot 2024-03-13 103823.png

As you can see, the result produces each invididual PO and details associated with it.  

 

The alternative would be to create a tooltip visual to show the purchases:

Screenshot 2024-03-13 104546.png

 

Thanks.

2 REPLIES 2
COIL-ibesmond
Helper I
Helper I

Hi @Daniel29195,

 

Thanks for the fast reply. Unfortunately that doesn't seem to work for my situation.  My later columns, sum(qty) and sum(cost) do not respond.  They remain aggreagated as one value for each. I don't want to change to text either because I use them for other calculations.  

 

Also my other measure Vendor ID* does not respond either.  I have a situation where one vendor ID is blank and the other is not, and it mismatches the line associating it with the first PO when it is associated with the second PO.

 

Vendor ID* =
CALCULATE(
    CONCATENATEX( VALUES( dim_Vendor[Vendor ID] ), dim_Vendor[Vendor ID], UNICHAR(10) ),
        CROSSFILTER(fact_Purchases[Vend_Key], dim_Vendor[Vend_Key], Both ) )
Daniel29195
Super User
Super User

@COIL-ibesmond 

use the concatenatex function . 

this is the pattern : 

 

 

concatenatex ( values(tbl_name[col_name] ) , tbl_name[col_name] , unichar(10) ) 

 

 

unichar (10 ) ==  line break . 

 

 

let me know if this helps .

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🙏

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.