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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MSW
Helper I
Helper I

Cross Section between Two Groups

Hello I am trying to assess some survey data and struggling to figure out how to find cross sections between varying groups. 

 

I have categories for each as defined by the questions and aggregates for each of those. I then broke them into scored levels IE expert, advanced... using this measure: Calculate(countrows(values('Table'[Response ID])),FIlter(All('Table'),'Table[score] = "Advanced". 

 

I did this for the other categories as well. What I am trying to find out is how can I make a measure or column that will give me the cross section between those that rated Advance in one category score with a score of say neutral from another category. 

 

The end result would look something like: 

Advanced (90 - as counted per ID) and Neutral (60 - counted per ID for that category) and there are X number of IDs that apply to both conditions. 

 

Appreciate any help provided. 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @MSW 

 

You can try the following methods.
Sample data:

vzhangti_0-1673591920700.png

Measure =
CALCULATE (
    COUNT ( 'Table'[Response ID] ),
    ALLEXCEPT ( 'Table', 'Table'[score] )
)

vzhangti_1-1673591976922.png

Is this the result you expect? If not, provide sample data and the output you expect.

 

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @MSW 

 

You can try the following methods.
Sample data:

vzhangti_0-1673591920700.png

Measure =
CALCULATE (
    COUNT ( 'Table'[Response ID] ),
    ALLEXCEPT ( 'Table', 'Table'[score] )
)

vzhangti_1-1673591976922.png

Is this the result you expect? If not, provide sample data and the output you expect.

 

Best Regards,

Community Support Team _Charlotte

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

FreemanZ
Super User
Super User

hi @MSW 

try to write a measure like this:

AdvancedNeutralCount =
VAR _list1 = 
CALCULATETABLE(
     VALUES(TableName[ResponseID]),
     TableName[Score]="Advanced")
)
VAR _list2 = 
CALCULATETABLE(
     VALUES(TableName[ResponseID]),
     TableName[Score]="Neutral")
)
RETURN
COUNTROWS(INTERSECT(_list1, _list2))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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