Forum Discussion

nicolast29's avatar
nicolast29
Helper V
2 years ago
Solved

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

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

 

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

for example only red sales in Paris

 

 

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

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    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:

    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.

2 Replies

  • Anonymous's avatar
    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:

    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.