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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AlwaysBI
Frequent Visitor

AllExcept and filter

HI

 

I need some help.

I have a table below.

YearMonthDayProductTypeGroupPrice
201931AOwnFirst Group A100
201931BCompetitorFirst Group A120
201931COwnFirst Group B90
201931DCompetitorFirst Group B80
201935EOwnFirst Group C150
201935FCompetitorFirst Group C170
201937GOwnFirst Group D150
201937HCompetitorFirst Group D120

 

and I would like to show the competitor price in every group itself.

Below is the measure I use and the expected result that I want to archive. Please advise.

 

CompetitorPricebyGroup =
CALCULATE(AVERAGE('Table'[price]),FILTER(ALLEXCEPT('Table','Table'[Day],'Table'[Month],'Table'[Group]),'Table'[Type]= "Competitor"),ALL('Table'))
 
Expected Result
YearMonthDayProductTypeGroupPriceCompetitor Price
201931AOwnFirst Group A100120
201931BCompetitorFirst Group A120120
201931COwnFirst Group B9080
201931DCompetitorFirst Group B8080
201935EOwnFirst Group C150170
201935FCompetitorFirst Group C170170
201937GOwnFirst Group D150120
201937HCompetitorFirst Group D120120

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @AlwaysBI 

You can create a calculated colum in the table you show (Table1):

 

Competitor Price =
CALCULATE (
    DISTINCT ( Table1[Price] );
    ALLEXCEPT ( Table1; Table1[Group] );
    Table1[Type] = "Competitor"
)

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @AlwaysBI 

You can create a calculated colum in the table you show (Table1):

 

Competitor Price =
CALCULATE (
    DISTINCT ( Table1[Price] );
    ALLEXCEPT ( Table1; Table1[Group] );
    Table1[Type] = "Competitor"
)

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
Top Kudoed Authors