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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
evanderpoel
Frequent Visitor

Place Text Values into a Matrix Table - PLEASE HELP!

I'm wondering if there is a way to put text data into a row in a matrix. I would like to add a row that shows each price that is connected to the sub-brand on each week. Some are regular prices like $5.49 and others are multiple price points like 2/$6 or 2/$7. I used the formula below to get the data to show up, but it lists every price for the sub brand, not just the one that aligns to each week. Formula, tables I'm using, how they are connected (in blue), and current and desired outcomes are below. Thank you in advance for any direction you can provide, this is driving me nuts!!

 

evanderpoel_3-1616881440292.png

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @evanderpoel ,

 

Based on the information you shared you need to use the following syntax:

 

MEASURE = 
IF (
    ISINSCOPE ( 'Data Master'[Week] ),
    CALCULATE (
        CONCATENATEX (
            VALUES ( 'Retail Survey'[RS Price TY] ),
            'Retail Survey'[RS Price TY],
            ","
        ),
        KEEPFILTERS ( 'Data Master' ),
        'Retail Survey'[RS Price TY] <> BLANK ()
    )
)

 

 

 

The INSCOPE part is to remove the calculation from the total values and the keepfilters allows to keep the subbrand and week filters to get the correct prices.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @evanderpoel ,

 

You need to create a filter on the subbrand.

 

Try somehting similar to:

 

MEASURE = CALCULATE (
    CONCATENATEX (
        VALUES ( 'Retail Survey'[RS Price TY] ),
        'Retail Survey'[RS Price TY],
        ","
    ),
    FILTER (
        ALL ( 'Item Master'[Sub Brand] ),
        'Item Master'[Sub Brand] = SELECTEDVALUE ( 'Item Master'[Sub Brand] )
    )
)

 

If this does not work can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @evanderpoel ,

 

Based on the information you shared you need to use the following syntax:

 

MEASURE = 
IF (
    ISINSCOPE ( 'Data Master'[Week] ),
    CALCULATE (
        CONCATENATEX (
            VALUES ( 'Retail Survey'[RS Price TY] ),
            'Retail Survey'[RS Price TY],
            ","
        ),
        KEEPFILTERS ( 'Data Master' ),
        'Retail Survey'[RS Price TY] <> BLANK ()
    )
)

 

 

 

The INSCOPE part is to remove the calculation from the total values and the keepfilters allows to keep the subbrand and week filters to get the correct prices.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



This worked great, thank you so much for your help, much appreciated!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.