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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
nicolast29
Helper V
Helper V

Get all row from a table based on calculated Formula

Hi

I read back the excellent book 5 The Definitive Guide to DAX-Business intelligence with Microsoft Excel, SQL Server Analysis Services, and Power BI, in order to review all the core concept after few years of practicing

 

I am on the evaluation context

I try something that i didn't arrive (see at the end after the explaination)

 

first, I have a matrix who calculated the sum of sales of all row with red color (on a simple example, and with a measure), it works great

nicolast29_0-1716974315599.png

Now i try to imagine how i can have on a second table the details for each row from the sales tables if i click for example on the cr3 =28 => Paris

I understand that it doesn't work because it is not a filter context apply when i do that

nicolast29_1-1716974399473.png

 

and of course if i add a slicer i have my result 

for example only red sales in Paris

nicolast29_2-1716974453300.png

 

 

so my question is, is it possible and how ho have the list of the row without the color slicer and if i click ok 28 (CR3) on paris in my matrix with a measure or ...

 

Here the file

test countrow.pbix

 

thanks

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@nicolast29 
I am glad to help you.

According to your description, you want to achieve the following effect in the matrix: dynamically filter the table in the matrix to display a row of data in the Sales table that corresponds to the selected metric (based on the MagKey rows and the filter criteria in the measure together, not only through the Magkey rows).

 

Unfortunately this is not possible, you can only filter another table by fields in the table (normal columns or calculate columns).

 

You can try to add [color] to the row field of the matrix (although this is similar to adding a Slicer)

like this:

vjtianmsft_0-1717037993871.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

2 REPLIES 2
nicolast29
Helper V
Helper V

Thanks for the explanations

Anonymous
Not applicable

Hi,@nicolast29 
I am glad to help you.

According to your description, you want to achieve the following effect in the matrix: dynamically filter the table in the matrix to display a row of data in the Sales table that corresponds to the selected metric (based on the MagKey rows and the filter criteria in the measure together, not only through the Magkey rows).

 

Unfortunately this is not possible, you can only filter another table by fields in the table (normal columns or calculate columns).

 

You can try to add [color] to the row field of the matrix (although this is similar to adding a Slicer)

like this:

vjtianmsft_0-1717037993871.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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