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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lukexuereb
Regular Visitor

Split Values in Matrix by Different Rows (Which have the same type of data)

I am displaying 2 different calculated measures in a matrix (Comp 1st Review and Comp 2nd Review). As seen below:

Comp 1st ReviewComp 2nd Review
84

 

I then split the above values by Computation1stReviewer. This field displays a list of peoples names, therefore the below matrix outputs a count of rows of each person for each measure:

 

Computation1stReviewerComp 1st ReviewComp 2nd Review
Person A10
Person B23
Person C51
Total84

 

The above was performed by adding Computation1stReviewer to 'Rows', as seen below:

comp1streviewer.PNG

 

My challenge is that I would not like the second measure (Comp 2nd Review) to be split into rows based on Computation1stReviewer, but I would like it to be split into rows by a different field, Computation2ndReviewer, which also displays a set of names. Therefore, below is the output which I am seeking:

Computation1stReviewerComp 1st ReviewComp 2nd Review
Person A1Comp 2nd Review Filtered by Computation2ndReviewer[Person A]
Person B2Comp 2nd Review Filtered by Computation2ndReviewer[Person B]
Person C5Comp 2nd Review Filtered by Computation2ndReviewer[Person C]
Total84

 

Note that there exists an overlap in names between Computation1stReviewer and Computation2ndReviewer. Although some names do exist in the former measure that do not exist in the latter, and vice versa.

 

I am unsure how to go about this, and would greatly appreciate any help or suggestions that you might have. Thank you! 

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

Hi @lukexuereb ,

 

Try the following formula:

 

Measure = 
var _1 =
    CALCULATE(
        DISTINCTCOUNT('Table'[Column2]),
        FILTER(
            ALL('Table'),
            'Table'[Computation2ndReviewer] = MAX('Table'[Computation1stReviewer])
        )
    )
return 
    IF(
        ISFILTERED('Table'[Computation1stReviewer]),
        _1,
        [Comp 2nd Review]
    )

 image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @lukexuereb ,

 

Try the following formula:

 

Measure = 
var _1 =
    CALCULATE(
        DISTINCTCOUNT('Table'[Column2]),
        FILTER(
            ALL('Table'),
            'Table'[Computation2ndReviewer] = MAX('Table'[Computation1stReviewer])
        )
    )
return 
    IF(
        ISFILTERED('Table'[Computation1stReviewer]),
        _1,
        [Comp 2nd Review]
    )

 image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Greg_Deckler
Community Champion
Community Champion

@lukexuereb Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I have updated my question and described the process step by step, hope it helps!

@lukexuereb I'm still not clear on what your source data looks like. However, it sounds like you have two columns of names. Try upivoting those columns and then you can filter by the Attribute field in your measures?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors