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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
veranceftw
Helper II
Helper II

Group By two columns and associate with a third column

veranceftw_0-1596977840484.png

 

Hello, I have a sample dataset where:

- One actor belongs to only one Series

- This series repeats itself throughout some episodes with the same Actors

- This actors can score some points 

- I forgot to put in the image, but I also have a third column - season. Series and Episodes should also be grouped by a season

 

I want to know, the points that the whole series actors do per episode, a feature where each actor has the series score per episode. 

 

DEFINE 
VAR __me = all_series_stats[actor]
VAR __ptab =
    SUMMARIZE (
        all_series_stats,
        all_series_stats[series],
        all_series_stats[episode],
        all_series_stats[season],
        "Cnt", SUM ( all_series_stats[points] )
    )

I tried to do this, but I am having some problems associating the result with the correspondent actor

 

Any idea on how to do this?

 

Regards

 

 

1 ACCEPTED SOLUTION

@veranceftw 

Add this as a new column in all_series_stats  table.

Measure = 

CALCULATE(
    SUM ( all_series_stats[points] ),
    ALLEXCEPT(
        all_series_stats,
        all_series_stats[series],
        all_series_stats[episode],
        all_series_stats[season]
    )
)

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Anand24
Super User
Super User

@veranceftw ,

Can you give an example of how your output should look like?

The last column should be the output 🙂 @Anand24 

@veranceftw 

Add this as a new column in all_series_stats  table.

Measure = 

CALCULATE(
    SUM ( all_series_stats[points] ),
    ALLEXCEPT(
        all_series_stats,
        all_series_stats[series],
        all_series_stats[episode],
        all_series_stats[season]
    )
)

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

It worked, thanks! Can you just give me a quick explanation? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors